diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2016-02-04 11:43:29 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2016-12-03 14:20:28 +0100 |
| commit | 4451db9f225d7a0e8a12503f0ff2f1393ee42467 (patch) | |
| tree | 46b3dc1f6b9f13bfabd09351ae758eb5cb3bd6d9 /phpBB/phpbb/install/module/install_finish | |
| parent | ade5183ba1f10e3ba1aea927204e25f3b218ceb2 (diff) | |
| download | forums-4451db9f225d7a0e8a12503f0ff2f1393ee42467.tar forums-4451db9f225d7a0e8a12503f0ff2f1393ee42467.tar.gz forums-4451db9f225d7a0e8a12503f0ff2f1393ee42467.tar.bz2 forums-4451db9f225d7a0e8a12503f0ff2f1393ee42467.tar.xz forums-4451db9f225d7a0e8a12503f0ff2f1393ee42467.zip | |
[ticket/14492] Apply fixes to update extensions task
The regex was also simplified.
PHPBB3-14492
Diffstat (limited to 'phpBB/phpbb/install/module/install_finish')
| -rw-r--r-- | phpBB/phpbb/install/module/install_finish/task/install_extensions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/install/module/install_finish/task/install_extensions.php b/phpBB/phpbb/install/module/install_finish/task/install_extensions.php index c9a35a309a..d92f420202 100644 --- a/phpBB/phpbb/install/module/install_finish/task/install_extensions.php +++ b/phpBB/phpbb/install/module/install_finish/task/install_extensions.php @@ -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)) { |
