Added module container, may be dropped again
This commit is contained in:
parent
6b308986d1
commit
db19ddca25
|
@ -275,6 +275,16 @@ class ActionController extends Zend_Controller_Action
|
||||||
if ($this->_request->getParam('format') === 'pdf' && $this->_request->getControllerName() !== 'static') {
|
if ($this->_request->getParam('format') === 'pdf' && $this->_request->getControllerName() !== 'static') {
|
||||||
$this->sendAsPdfAndDie();
|
$this->sendAsPdfAndDie();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Module container
|
||||||
|
$module_name = $this->_request->getModuleName();
|
||||||
|
$this->_helper->layout()->moduleStart =
|
||||||
|
'<div class="icinga-module module-'
|
||||||
|
. $module_name
|
||||||
|
. '" data-icinga-module="' . $module_name . '">'
|
||||||
|
. "\n"
|
||||||
|
;
|
||||||
|
$this->_helper->layout()->moduleEnd = "</div>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function sendAsPdfAndDie()
|
protected function sendAsPdfAndDie()
|
||||||
|
|
Loading…
Reference in New Issue