1
0
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:
Marc Alexander
2016-02-04 11:43:29 +01:00
parent ade5183ba1
commit 4451db9f22
2 changed files with 38 additions and 4 deletions

View File

@@ -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))
{