aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2010-03-29 15:14:21 +0000
committerpatdenice <patdenice@piwigo.org>2010-03-29 15:14:21 +0000
commit6024107c9ceefcb45e0ab1f17d16f3472a2d5161 (patch)
treee1dff3eef1814d52d4e33582c0cafd16e6760b80
parent29d36ffdc36bf20ab43840df9272fac160cbc476 (diff)
feature 1502: Configuration menu is selected when theme configuration page is selected.
Remove useless global $page. git-svn-id: http://piwigo.org/svn/trunk@5448 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/include/functions.php1
-rw-r--r--include/template.class.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index f4a332623..5428ba101 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -1949,6 +1949,7 @@ function get_active_menu($menu_page)
case 'menubar':
case 'themes_new':
case 'themes_installed':
+ case 'theme':
case 'languages_installed':
return 5;
}
diff --git a/include/template.class.php b/include/template.class.php
index 3a13adf47..a92e499a8 100644
--- a/include/template.class.php
+++ b/include/template.class.php
@@ -576,7 +576,7 @@ class Template {
function load_themeconf($dir)
{
- global $themeconfs, $conf, $page;
+ global $themeconfs, $conf;
$dir = realpath($dir);
if (!isset($themeconfs[$dir]))