mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
We don't die unless we're dead ;)
This commit is contained in:
parent
294d8f87bf
commit
063939b73a
@ -310,7 +310,8 @@ 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->sendAsPdf();
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -328,7 +329,7 @@ class ActionController extends Zend_Controller_Action
|
|||||||
$this->_helper->layout()->moduleEnd = "</div>\n";
|
$this->_helper->layout()->moduleEnd = "</div>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function sendAsPdfAndDie()
|
protected function sendAsPdf()
|
||||||
{
|
{
|
||||||
$this->_helper->layout()->setLayout('inline');
|
$this->_helper->layout()->setLayout('inline');
|
||||||
$body = $this->view->render(
|
$body = $this->view->render(
|
||||||
@ -364,7 +365,6 @@ class ActionController extends Zend_Controller_Action
|
|||||||
} else {
|
} else {
|
||||||
Logger::error('Could not send pdf-response, content already written to output.');
|
Logger::error('Could not send pdf-response, content already written to output.');
|
||||||
}
|
}
|
||||||
die();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user