aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/AdminTools/include/events.inc.php6
-rw-r--r--plugins/AdminTools/main.inc.php3
2 files changed, 7 insertions, 2 deletions
diff --git a/plugins/AdminTools/include/events.inc.php b/plugins/AdminTools/include/events.inc.php
index 5bdfa1baa..d11d59ba7 100644
--- a/plugins/AdminTools/include/events.inc.php
+++ b/plugins/AdminTools/include/events.inc.php
@@ -207,7 +207,11 @@ function admintools_add_admin_controller()
{
switch_lang_back();
}
-
+}
+
+function admintools_add_admin_controller_setprefilter()
+{
+ global $template;
$template->set_prefilter('header', 'admintools_admin_prefilter');
}
diff --git a/plugins/AdminTools/main.inc.php b/plugins/AdminTools/main.inc.php
index 692ca5d27..f4b1bd782 100644
--- a/plugins/AdminTools/main.inc.php
+++ b/plugins/AdminTools/main.inc.php
@@ -38,7 +38,8 @@ if (!defined('IN_ADMIN'))
}
else
{
- add_event_handler('loc_begin_page_header', 'admintools_add_admin_controller');
+ add_event_handler('loc_begin_page_header', 'admintools_add_admin_controller_setprefilter');
+ add_event_handler('loc_after_page_header', 'admintools_add_admin_controller');
add_event_handler('get_admin_plugin_menu_links', 'admintools_admin_link');
}