aboutsummaryrefslogtreecommitdiffstats
path: root/admin.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-03-17 23:50:53 +0000
committerplegall <plg@piwigo.org>2010-03-17 23:50:53 +0000
commitcd00dffa7210a16063ab8e8f7811929b75f9a8e8 (patch)
tree530c3db41beecbaeac6381dcb4389cacf3d5ad07 /admin.php
parent3c6ef3d16d9746767647e88e0ba083e37855e03c (diff)
feature 1515: the new admin menu organization implies to tell the accordion
menu which section to open on page load. I've moved the single function in functions_themes.inc.php to function.php to avoid misunderstanding with theme manager. Ability to preset the active menu (in the future, a plugin may add its admin page anywhere in the menu, this features needs other change to be possible) git-svn-id: http://piwigo.org/svn/trunk@5173 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/admin.php b/admin.php
index a0d6daf39..ec6bc91a5 100644
--- a/admin.php
+++ b/admin.php
@@ -164,6 +164,8 @@ include(PHPWG_ROOT_PATH.'admin/'.$page['page'].'.php');
// | errors & infos |
// +-----------------------------------------------------------------------+
+$template->assign('ACTIVE_MENU', get_active_menu($page['page']));
+
if (count($page['errors']) != 0)
{
$template->assign('errors', $page['errors']);