Skip to content

Commit

Permalink
bug 3110: AdminTools DOM misplaced on admin
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@29197 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
mistic100 committed Aug 10, 2014
1 parent 12fc034 commit 8790cdb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion plugins/AdminTools/include/events.inc.php
Expand Up @@ -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');
}

Expand Down
3 changes: 2 additions & 1 deletion plugins/AdminTools/main.inc.php
Expand Up @@ -38,7 +38,8 @@
}
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');
}

Expand Down

0 comments on commit 8790cdb

Please sign in to comment.