From 596459af424d2165e75677e8b7d588674fadf82e Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 1 Feb 2010 13:18:50 +0100 Subject: [PATCH] Das globale Locale-Objekt im Fehlerfall neu initialisieren; das lokale wurde nicht weiter verwendet --- SL/Dispatcher.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 2599f5f0f..6254dced1 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -33,7 +33,7 @@ sub show_error { $::lxdebug->enter_sub; my $template = shift; my $error_type = shift || ''; - my $locale = Locale->new($::language, 'all'); + $::locale = Locale->new($::language, 'all'); $::form->{error} = $::locale->text('The session is invalid or has expired.') if ($error_type eq 'session'); $::form->{error} = $::locale->text('Incorrect password!.') if ($error_type eq 'password'); $::myconfig{countrycode} = $::language; -- 2.20.1