Skip to content
Snippets Groups Projects
Commit 539c834b authored by llaffont's avatar llaffont
Browse files

Si l'opac tourne en local, affichage des infos debug

parent 306343ef
Branches
Tags
No related merge requests found
......@@ -23,5 +23,10 @@ class ErrorController extends Zend_Controller_Action {
$this->_response->setHttpResponseCode(500);
$this->_response->clearBody();
$this->_helper->getHelper('viewRenderer')->setLayoutScript('empty.phtml');
if ($this->_request->getServer('HTTP_HOST') !== 'localhost')
return;
echo $this->_response->setBody($this->_getParam('error_handler')->exception->xdebug_message);
}
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment