Render "inline" layout if the view parameter is set to "compact"

This commit is contained in:
Eric Lippmann 2014-02-20 16:58:30 +01:00 committed by Thomas Gelf
parent db82c93c7e
commit 73dc6c3c27

View File

@ -260,7 +260,7 @@ class ActionController extends Zend_Controller_Action
{ {
Benchmark::measure('Action::postDispatch()'); Benchmark::measure('Action::postDispatch()');
if ($this->_request->isXmlHttpRequest()) { if ($this->_request->isXmlHttpRequest() || $this->getParam('view') === 'compact') {
$this->_helper->layout()->setLayout('inline'); $this->_helper->layout()->setLayout('inline');
} }
if ($user = $this->_request->getUser()) { if ($user = $this->_request->getUser()) {