Move moduleContainer to a separate function as it will be removed

This commit is contained in:
Thomas Gelf 2014-03-06 11:13:07 +00:00
parent 95189fbf46
commit 294d8f87bf
1 changed files with 7 additions and 1 deletions

View File

@ -281,6 +281,8 @@ class ActionController extends Zend_Controller_Action
{
Benchmark::measure('Action::postDispatch()');
$this->addModuleContainer();
if ($this->_request->isXmlHttpRequest() || $this->getParam('view') === 'compact') {
$this->_helper->layout()->setLayout('inline');
}
@ -311,7 +313,11 @@ class ActionController extends Zend_Controller_Action
$this->sendAsPdfAndDie();
}
// Module container
}
protected function addModuleContainer()
{
$module_name = $this->_request->getModuleName();
$this->_helper->layout()->moduleStart =
'<div class="icinga-module module-'