Revision 8fe2c44e
Von Bernd Bleßmann vor etwa 1 Jahr hinzugefügt
SL/Dispatcher/AuthHandler/User.pm | ||
---|---|---|
6 | 6 |
use Encode (); |
7 | 7 |
use MIME::Base64 (); |
8 | 8 |
|
9 |
use SL::Helper::UserPreferences::DisplayPreferences; |
|
9 | 10 |
use SL::Layout::Dispatcher; |
10 | 11 |
|
11 | 12 |
sub handle { |
... | ... | |
26 | 27 |
return $self->_error(%param) unless $::myconfig{login}; |
27 | 28 |
|
28 | 29 |
$::locale = Locale->new($::myconfig{countrycode}); |
30 |
|
|
31 |
# user can force a layout version |
|
32 |
my $user_prefs = SL::Helper::UserPreferences::DisplayPreferences->new(); |
|
33 |
$::request->is_mobile(0) if ($user_prefs->get_layout_style || '') eq 'desktop'; |
|
34 |
$::request->is_mobile(1) if ($user_prefs->get_layout_style || '') eq 'mobile'; |
|
29 | 35 |
$::request->{layout} = $::request->is_mobile |
30 | 36 |
? SL::Layout::Dispatcher->new(style => 'mobile') |
31 | 37 |
: SL::Layout::Dispatcher->new(style => $::myconfig{menustyle}); |
Auch abrufbar als: Unified diff
Erzwungener Layout-Stil: User-AuthHandler: berücksichtigt Benutzereinstellung
… 'desktop' oder 'mobil'