]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - html/cgi-bin/gui.cgi
Corrected little gui bug with ajax speed var
[ipfire-2.x.git] / html / cgi-bin / gui.cgi
index 432e9fe7290812fbf9582ff702fec1cb9bace240..a56a20d2ceb54310871496ed7b7c4de7e5b69d3c 100644 (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 =~ /^\./ );