From 881cc20546b8445c3d8308e12ed54641c87ef12b Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 1 Feb 2010 13:19:01 +0100 Subject: [PATCH] Kosmetik --- SL/Dispatcher.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 6254dced1..0e1995410 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -31,11 +31,12 @@ sub pre_request_checks { sub show_error { $::lxdebug->enter_sub; - my $template = shift; - my $error_type = shift || ''; - $::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'); + my $template = shift; + my $error_type = shift || ''; + + $::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; $::form->{stylesheet} = 'css/lx-office-erp.css'; -- 2.20.1