aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/adm/index.php')
-rw-r--r--phpBB/adm/index.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/phpBB/adm/index.php b/phpBB/adm/index.php
index 102d91d4dc..a6a6dcb563 100644
--- a/phpBB/adm/index.php
+++ b/phpBB/adm/index.php
@@ -59,6 +59,13 @@ $mode = request_var('mode', '');
phpbb::$template->set_custom_template(PHPBB_ADMIN_PATH . 'style', 'admin');
phpbb::$template->assign_var('T_TEMPLATE_PATH', PHPBB_ADMIN_PATH . 'style');
+// Define page header/footer to use
+phpbb::$plugins->register_function('page_header', 'adm_page_header', phpbb::FUNCTION_OVERRIDE);
+phpbb::$plugins->register_function('page_footer', 'adm_page_footer', phpbb::FUNCTION_OVERRIDE);
+
+// And make the calls available
+phpbb::$plugins->setup();
+
// Instantiate new module
$module = new p_master();
@@ -76,13 +83,13 @@ $module->assign_tpl_vars(phpbb::$url->append_sid(PHPBB_ADMIN_PATH . 'index.' . P
$module->load_active();
// Generate the page
-adm_page_header($module->get_page_title());
+page_header($module->get_page_title());
phpbb::$template->set_filenames(array(
'body' => $module->get_tpl_name(),
));
-adm_page_footer();
+page_footer();
/**
* Header for acp pages