mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Move moduleContainer to a separate function as it will be removed
This commit is contained in:
parent
95189fbf46
commit
294d8f87bf
@ -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-'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user