Fix default category
authorJamie Cameron <jcameron@webmin.com>
Mon, 16 Mar 2009 21:44:28 +0000 (21:44 +0000)
committerJamie Cameron <jcameron@webmin.com>
Mon, 16 Mar 2009 21:44:28 +0000 (21:44 +0000)
mscstyle3/index.cgi
mscstyle3/theme.pl

index 317dfac..1806185 100755 (executable)
@@ -35,7 +35,7 @@ if (!defined($in{'cat'})) {
 
 # Show standard header
 $gconfig{'sysinfo'} = 0 if ($gconfig{'sysinfo'} == 1);
-$theme_index_page = 1;
+$main::theme_index_page = 1;
 $title = $gconfig{'nohostname'} ? $text{'main_title2'} :
         &text('main_title', $ver, $hostname, $ostr);
 &header($title, "",
index 163e7d9..b500cd5 100755 (executable)
@@ -281,7 +281,7 @@ if (@_ > 1 && !$one && $remote_user && !$notabs) {
     $cats = @cats;
     $per = $cats ? 100.0 / $cats : 100;
 
-    if ($theme_index_page) {
+    if ($main::theme_index_page) {
            if (!defined($in{'cat'})) {
               
                # Use default category