Fix that the session is written too early when post-dispatching

This commit is contained in:
Johannes Meyer 2014-10-15 13:15:30 +02:00
parent 2c09ca1623
commit 38ee467603
1 changed files with 3 additions and 2 deletions

View File

@ -377,10 +377,9 @@ class ActionController extends Zend_Controller_Action
}
}
$this->shutdownSession();
if ($req->getParam('format') === 'pdf') {
$layout->setLayout('pdf');
$this->shutdownSession();
$this->sendAsPdf();
exit;
}
@ -388,6 +387,8 @@ class ActionController extends Zend_Controller_Action
if ($this->isXhr()) {
$this->postDispatchXhr();
}
$this->shutdownSession();
}
protected function postDispatchXhr()