mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/14492] Apply fixes to update extensions task
The regex was also simplified. PHPBB3-14492
This commit is contained in:
@@ -109,7 +109,7 @@ class install_extensions extends \phpbb\install\task_base
|
||||
foreach ($this->finder as $file)
|
||||
{
|
||||
/** @var \SplFileInfo $file */
|
||||
$ext_name = preg_replace('#(.+[\\/\\\]ext[\\/\\\])([^\\/\\\]+)[\\/\\\]([^\\/\\\]+)#', '$2/$3', dirname($file->getRealPath()));
|
||||
$ext_name = preg_replace('#(.+[\\/\\\]ext[\\/\\\])(\w+)[\\/\\\](\w+)#', '$2/$3', dirname($file->getRealPath()));
|
||||
|
||||
if ($this->extension_manager->is_available($ext_name))
|
||||
{
|
||||
|
Reference in New Issue
Block a user