diff options
author | Rubén Calvo <rubencm@gmail.com> | 2017-09-03 17:50:40 +0200 |
---|---|---|
committer | Rubén Calvo <rubencm@gmail.com> | 2017-09-03 17:53:10 +0200 |
commit | e854e5b71f90910075fbac2b4f0dadac4fd39588 (patch) | |
tree | 293563e340a8c3c4c4a302940887e6fef09963f0 /phpBB | |
parent | 1e605efaf126f5474bb1be99e7fdaed834ebb2a0 (diff) | |
download | forums-e854e5b71f90910075fbac2b4f0dadac4fd39588.tar forums-e854e5b71f90910075fbac2b4f0dadac4fd39588.tar.gz forums-e854e5b71f90910075fbac2b4f0dadac4fd39588.tar.bz2 forums-e854e5b71f90910075fbac2b4f0dadac4fd39588.tar.xz forums-e854e5b71f90910075fbac2b4f0dadac4fd39588.zip |
[ticket/15346] Check if extension is enableable during install
PHPBB3-15346
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/phpbb/install/module/install_finish/task/install_extensions.php | 7 |
1 files changed, 7 insertions, 0 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 553a30ea28..db28ad8fe3 100644 --- a/phpBB/phpbb/install/module/install_finish/task/install_extensions.php +++ b/phpBB/phpbb/install/module/install_finish/task/install_extensions.php @@ -118,6 +118,13 @@ class install_extensions extends \phpbb\install\task_base try { + $extension = $this->extension_manager->get_extension($ext_name); + + if (!$extension->is_enableable()) + { + continue; + } + $this->extension_manager->enable($ext_name); $extensions = $this->get_extensions(); |