Revision c7edb248
Von Sven Schöling vor mehr als 14 Jahren hinzugefügt
SL/Dispatcher.pm | ||
---|---|---|
34 | 34 |
my $template = shift; |
35 | 35 |
my $error_type = shift || ''; |
36 | 36 |
|
37 |
$::locale = Locale->new($::language, 'all');
|
|
37 |
$::locale = Locale->new($::language); |
|
38 | 38 |
$::form->{error} = $::locale->text('The session is invalid or has expired.') if ($error_type eq 'session'); |
39 | 39 |
$::form->{error} = $::locale->text('Incorrect password!.') if ($error_type eq 'password'); |
40 | 40 |
$::myconfig{countrycode} = $::language; |
... | ... | |
128 | 128 |
require_main_code($script, $suffix); |
129 | 129 |
|
130 | 130 |
$::cgi = CGI->new(''); |
131 |
$::locale = Locale->new($::language, $script);
|
|
131 |
$::locale = Locale->new($::language); |
|
132 | 132 |
$::form = Form->new; |
133 | 133 |
$::form->{script} = $script . $suffix; |
134 | 134 |
|
... | ... | |
150 | 150 |
|
151 | 151 |
show_error('login/password_error', 'password') unless $::myconfig{login}; |
152 | 152 |
|
153 |
$::locale = Locale->new($::myconfig{countrycode}, $script);
|
|
153 |
$::locale = Locale->new($::myconfig{countrycode}); |
|
154 | 154 |
|
155 | 155 |
show_error('login/password_error', 'password') if SL::Auth::OK != $::auth->authenticate($::form->{login}, $::form->{password}, 0); |
156 | 156 |
|
Auch abrufbar als: Unified diff
Nur ein globales Locale-Objekt anlegen
Außerdem alle lokalen Locale-Objekte entfernt. Ist so noch nicht funktionabel.
Conflicts: