Layout package names refactored
[kivitendo-erp.git] / SL / Controller / LoginScreen.pm
index e73224b..89909c0 100644 (file)
@@ -39,7 +39,7 @@ sub action_login {
   $::form->{login} = $::myconfig{login};
   $::locale        = Locale->new($::myconfig{countrycode}) if $::myconfig{countrycode};
   my $user         = User->new(login => $::myconfig{login});
-  $::request->{layout} = SL::Controller::Layout->new(style => $user->{menustyle});
+  $::request->{layout} = SL::Layout->new(style => $user->{menustyle});
 
   # if we get an error back, bale out
   my $result = $user->login($::form);
@@ -118,7 +118,7 @@ sub error_state {
 }
 
 sub set_layout {
-  $::request->{layout} = SL::Controller::Layout->new(style => 'login');
+  $::request->{layout} = SL::Layout::Dispatcher->new(style => 'login');
 }
 
 1;