diff --git a/mscstyle3/index.cgi b/mscstyle3/index.cgi index 317dfacc2..18061854f 100755 --- a/mscstyle3/index.cgi +++ b/mscstyle3/index.cgi @@ -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, "", diff --git a/mscstyle3/theme.pl b/mscstyle3/theme.pl index 163e7d9ac..b500cd51c 100755 --- a/mscstyle3/theme.pl +++ b/mscstyle3/theme.pl @@ -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