From: Rob Brewer Date: Sun, 3 Apr 2022 08:55:34 +0000 (+0200) Subject: ipblocklist.dat: Do not rely on any theme settings. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=acf4a99d23576556727cffabc0089306d47b2b61;p=people%2Fstevee%2Fipfire-2.x.git ipblocklist.dat: Do not rely on any theme settings. The support for themes has been removed since ages, so we do not need this anymore and may crash the page. Signed-off-by: Rob Brewer Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/logs.cgi/ipblocklists.dat b/html/cgi-bin/logs.cgi/ipblocklists.dat index d4b2593a78..2435137b5e 100755 --- a/html/cgi-bin/logs.cgi/ipblocklists.dat +++ b/html/cgi-bin/logs.cgi/ipblocklists.dat @@ -295,7 +295,7 @@ print "

$Lang::tr{'ipblocklist hits'} $longmonthstr $daystr: $lines

my %color = (); my %mainsettings = (); &General::readhash("${General::swroot}/main/settings", \%mainsettings); -&General::readhash("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/include/colors.txt", \%color); +&General::readhash("/srv/web/ipfire/html/themes/ipfire/include/colors.txt", \%color); my @lists = sort keys (%lists);