qos.cgi: Fix missing translation

Message ID 20210716085607.190-1-hofmann@leo-andres.de
State Accepted
Commit fc81e493b14d545893856d5bcba11d538a8ae16c
Headers
Series qos.cgi: Fix missing translation |

Commit Message

Leo-Andres Hofmann July 16, 2021, 8:56 a.m. UTC
  Fixes: #12443

Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
---
 html/cgi-bin/qos.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Michael Tremer July 16, 2021, 10:49 a.m. UTC | #1
Thank you. Good spot.

Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>

> On 16 Jul 2021, at 09:56, Leo-Andres Hofmann <hofmann@leo-andres.de> wrote:
> 
> Fixes: #12443
> 
> Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
> ---
> html/cgi-bin/qos.cgi | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/html/cgi-bin/qos.cgi b/html/cgi-bin/qos.cgi
> index fa566b523..c45e24992 100644
> --- a/html/cgi-bin/qos.cgi
> +++ b/html/cgi-bin/qos.cgi
> @@ -360,7 +360,7 @@ END
> ;
> 	close FILE;
> }
> -elsif ($qossettings{'DOTOS'} eq 'Loeschen')
> +elsif ($qossettings{'DOTOS'} eq $Lang::tr{'delete'})
> {
> 	open( FILE, "< $tosfile" ) or die "Unable to read $tosfile";
> 	@tosrules = <FILE>;
> -- 
> 2.27.0.windows.1
>
  

Patch

diff --git a/html/cgi-bin/qos.cgi b/html/cgi-bin/qos.cgi
index fa566b523..c45e24992 100644
--- a/html/cgi-bin/qos.cgi
+++ b/html/cgi-bin/qos.cgi
@@ -360,7 +360,7 @@  END
 ;
 	close FILE;
 }
-elsif ($qossettings{'DOTOS'} eq 'Loeschen')
+elsif ($qossettings{'DOTOS'} eq $Lang::tr{'delete'})
 {
 	open( FILE, "< $tosfile" ) or die "Unable to read $tosfile";
 	@tosrules = <FILE>;