ActionController: Shift parameter `view` if its value is `compact`
This commit is contained in:
parent
60c3fd6406
commit
6cf9f19048
|
@ -129,7 +129,10 @@ class ActionController extends Zend_Controller_Action
|
|||
$this->_helper->layout()->showFullscreen = $request->getUrl()->shift('showFullscreen');
|
||||
$this->_helper->layout()->moduleName = $moduleName;
|
||||
|
||||
$this->view->compact = $request->getParam('view') === 'compact';
|
||||
if ($request->getUrl()->getParam('view') === 'compact') {
|
||||
$request->getUrl()->remove('view');
|
||||
$this->view->compact = true;
|
||||
}
|
||||
if ($request->getUrl()->shift('showCompact')) {
|
||||
$this->view->compact = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue