aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/install_install.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-08-29 20:05:46 -0400
committerNils Adermann <naderman@naderman.de>2011-09-29 15:42:48 +0200
commit48391d2dde8f40e3c7e7d4a41b8ff1c32508ffc1 (patch)
treee075957a83fb11799d3bea44c7f0bdf9da36fd28 /phpBB/install/install_install.php
parent739e9eb58e7e9b899955b714aa3fc8bbe6a30ebc (diff)
downloadforums-48391d2dde8f40e3c7e7d4a41b8ff1c32508ffc1.tar
forums-48391d2dde8f40e3c7e7d4a41b8ff1c32508ffc1.tar.gz
forums-48391d2dde8f40e3c7e7d4a41b8ff1c32508ffc1.tar.bz2
forums-48391d2dde8f40e3c7e7d4a41b8ff1c32508ffc1.tar.xz
forums-48391d2dde8f40e3c7e7d4a41b8ff1c32508ffc1.zip
[feature/extension-manager] Create an extension manager on update and install
It's required when adding modules PHPBB3-10323
Diffstat (limited to 'phpBB/install/install_install.php')
-rw-r--r--phpBB/install/install_install.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php
index f8c54678bf..c6b315ae6c 100644
--- a/phpBB/install/install_install.php
+++ b/phpBB/install/install_install.php
@@ -1483,7 +1483,13 @@ class install_install extends module
*/
function add_modules($mode, $sub)
{
- global $db, $lang, $phpbb_root_path, $phpEx;
+ global $db, $lang, $phpbb_root_path, $phpEx, $phpbb_extension_manager;
+
+ // modules require an extension manager
+ if (empty($phpbb_extension_manager))
+ {
+ $phpbb_extension_manager = new phpbb_extension_manager($db, EXT_TABLE, $phpbb_root_path, ".$phpEx");
+ }
include_once($phpbb_root_path . 'includes/acp/acp_modules.' . $phpEx);