Revision b6fd15a8
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
SL/Controller/LoginScreen.pm | ||
---|---|---|
39 | 39 |
$::form->{login} = $::myconfig{login}; |
40 | 40 |
$::locale = Locale->new($::myconfig{countrycode}) if $::myconfig{countrycode}; |
41 | 41 |
my $user = User->new(login => $::myconfig{login}); |
42 |
$::request->{layout} = SL::Controller::Layout->new(style => $user->{menustyle});
|
|
42 |
$::request->{layout} = SL::Layout->new(style => $user->{menustyle}); |
|
43 | 43 |
|
44 | 44 |
# if we get an error back, bale out |
45 | 45 |
my $result = $user->login($::form); |
... | ... | |
118 | 118 |
} |
119 | 119 |
|
120 | 120 |
sub set_layout { |
121 |
$::request->{layout} = SL::Controller::Layout->new(style => 'login');
|
|
121 |
$::request->{layout} = SL::Layout::Dispatcher->new(style => 'login');
|
|
122 | 122 |
} |
123 | 123 |
|
124 | 124 |
1; |
Auch abrufbar als: Unified diff
Layout package names refactored
SL::Controller::Layout::* -> SL::Layout::*
SL::Controller::Layout -> SL::Layout::Dispatcher