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

View File

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