Skip to content

Commit

Permalink
Fix for Mobile mode causing an infinite redirection loop
Browse files Browse the repository at this point in the history
when no mobile layout was available.
  • Loading branch information
ncuesta committed Dec 19, 2015
1 parent fa0e6fc commit d2165bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/frontend/modules/default/actions/actions.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function executeSetMobileMode()
{
$can_be_mobile = LayoutPeer::mobileExists();

$this->getResponse()->setCookie('mobile_mode_set', $can_be_mobile);
$this->getResponse()->setCookie('mobile_mode_set', true);
$this->getUser()->setAttribute('mobile_mode', $can_be_mobile);
$this->redirect('@homepage');
}
Expand Down

0 comments on commit d2165bc

Please sign in to comment.