From 063939b73a951a7e678716e16b05bdaa6949637a Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 6 Mar 2014 11:14:21 +0000 Subject: [PATCH] We don't die unless we're dead ;) --- library/Icinga/Web/Controller/ActionController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/Icinga/Web/Controller/ActionController.php b/library/Icinga/Web/Controller/ActionController.php index bf3b8df72..8e512ebe2 100644 --- a/library/Icinga/Web/Controller/ActionController.php +++ b/library/Icinga/Web/Controller/ActionController.php @@ -310,7 +310,8 @@ class ActionController extends Zend_Controller_Action } } 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 = "\n"; } - protected function sendAsPdfAndDie() + protected function sendAsPdf() { $this->_helper->layout()->setLayout('inline'); $body = $this->view->render( @@ -364,7 +365,6 @@ class ActionController extends Zend_Controller_Action } else { Logger::error('Could not send pdf-response, content already written to output.'); } - die(); } /**