aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-08-10 17:43:03 +0000
committermistic100 <mistic@piwigo.org>2014-08-10 17:43:03 +0000
commit8790cdb69c36b9e3b2457bde907b207a66f6c871 (patch)
treea89d6e792cd820ddf4a34f1c92ac0f09bdcc2c9e
parent12fc034d8299d3d75e7a5fd02b2b4ddadbe14307 (diff)
bug 3110: AdminTools DOM misplaced on admin
git-svn-id: http://piwigo.org/svn/trunk@29197 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-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');
}