From: Moritz Bunkus Date: Mon, 1 Feb 2010 12:19:01 +0000 (+0100) Subject: Kosmetik X-Git-Tag: release-2.6.2beta1~307 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=881cc20546b8445c3d8308e12ed54641c87ef12b;p=kivitendo-erp.git Kosmetik --- 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';