bug 3110: AdminTools DOM misplaced on admin

git-svn-id: http://piwigo.org/svn/trunk@29197 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100 2014-08-10 17:43:03 +00:00
commit 8790cdb69c
2 changed files with 7 additions and 2 deletions

View file

@ -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');
}

View file

@ -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');
}