Corrected little gui bug with ajax speed var

git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1264 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
maniacikarus
2008-03-11 17:23:36 +00:00
parent 0b06ad0567
commit 539987de23
2 changed files with 7 additions and 1 deletions

View File

@@ -128,7 +128,10 @@ if ($cgiparams{'ACTION'} eq "$Lang::tr{'save'}")
if($mainsettings{'SPEED'}) {
$cgiparams{'SPEED'} = $mainsettings{'SPEED'};
} else {
$cgiparams{'SPEED'} = 'off';
# if var is not defined it will be set to on because after installation var
# is not set and the speedmeter should be displayed, it can only be deactivated
# by manually setting the var to off
$cgiparams{'SPEED'} = 'on';
}
}
@@ -243,6 +246,8 @@ local *DH;
my ($item, $file);
my @files;
# Foreach directory create am theme entry to be selected by user
opendir (DH, $dir);
while ($file = readdir (DH)) {
next if ( $file =~ /^\./ );