mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/extension-manager] Load the extension manager on all pages
PHPBB3-10323
This commit is contained in:
parent
fabde989a2
commit
fb943d4d6b
2 changed files with 7 additions and 1 deletions
|
@ -124,6 +124,9 @@ $config = new phpbb_config_db($db, $cache->get_driver(), CONFIG_TABLE);
|
||||||
set_config(null, null, null, $config);
|
set_config(null, null, null, $config);
|
||||||
set_config_count(null, null, null, $config);
|
set_config_count(null, null, null, $config);
|
||||||
|
|
||||||
|
// load extensions
|
||||||
|
$phpbb_extension_manager = new phpbb_extension_manager($db, EXT_TABLE, $phpbb_root_path, ".$phpEx", $cache->get_driver());
|
||||||
|
|
||||||
$template_locator = new phpbb_template_locator();
|
$template_locator = new phpbb_template_locator();
|
||||||
$template = new phpbb_template($phpbb_root_path, $phpEx, $config, $user, $template_locator);
|
$template = new phpbb_template($phpbb_root_path, $phpEx, $config, $user, $template_locator);
|
||||||
|
|
||||||
|
@ -138,5 +141,5 @@ foreach ($cache->obtain_hooks() as $hook)
|
||||||
|
|
||||||
if (!$config['use_system_cron'])
|
if (!$config['use_system_cron'])
|
||||||
{
|
{
|
||||||
$cron = new phpbb_cron_manager($phpbb_root_path . 'includes/cron/task', $phpEx, $cache->get_driver());
|
$cron = new phpbb_cron_manager($phpbb_extension_manager, $cache->get_driver());
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,6 +73,9 @@ if (isset($_GET['avatar']))
|
||||||
set_config(null, null, null, $config);
|
set_config(null, null, null, $config);
|
||||||
set_config_count(null, null, null, $config);
|
set_config_count(null, null, null, $config);
|
||||||
|
|
||||||
|
// load extensions
|
||||||
|
$phpbb_extension_manager = new phpbb_extension_manager($db, EXT_TABLE, $phpbb_root_path, ".$phpEx", $cache->get_driver());
|
||||||
|
|
||||||
$filename = request_var('avatar', '');
|
$filename = request_var('avatar', '');
|
||||||
$avatar_group = false;
|
$avatar_group = false;
|
||||||
$exit = false;
|
$exit = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue