ipblocklist.cgi: Theme fix

Message ID 20220715120445.1391-1-matthias.fischer@ipfire.org
State Accepted
Commit bda851172f1b924a0cb4c1d22ab95ccdf79dcd2b
Headers
Series ipblocklist.cgi: Theme fix |

Commit Message

Matthias Fischer July 15, 2022, 12:04 p.m. UTC
  Themes have been dropped - 'ipblocklist.cgi' refused to start.

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
 html/cgi-bin/ipblocklist.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Stefan Schantl July 15, 2022, 12:14 p.m. UTC | #1
Acked-by: Stefan Schantl  <stefan.schantl@ipfire.org>


Am 15. Juli 2022 14:04:53 schrieb Matthias Fischer 
<matthias.fischer@ipfire.org>:

> Themes have been dropped - 'ipblocklist.cgi' refused to start.
>
> Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
> ---
> html/cgi-bin/ipblocklist.cgi | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/html/cgi-bin/ipblocklist.cgi b/html/cgi-bin/ipblocklist.cgi
> index 431ff1a37..bb438129c 100644
> --- a/html/cgi-bin/ipblocklist.cgi
> +++ b/html/cgi-bin/ipblocklist.cgi
> @@ -62,7 +62,7 @@ my %settings = (
> # Read all parameters
> &Header::getcgihash( \%cgiparams);
> &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);
>
> # Get list of supported blocklists.
> my @blocklists = &IPblocklist::get_blocklists();
> --
> 2.25.1
  

Patch

diff --git a/html/cgi-bin/ipblocklist.cgi b/html/cgi-bin/ipblocklist.cgi
index 431ff1a37..bb438129c 100644
--- a/html/cgi-bin/ipblocklist.cgi
+++ b/html/cgi-bin/ipblocklist.cgi
@@ -62,7 +62,7 @@  my %settings = (
 # Read all parameters
 &Header::getcgihash( \%cgiparams);
 &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);
 
 # Get list of supported blocklists.
 my @blocklists = &IPblocklist::get_blocklists();