]> dev.renevier.net Git - syj.git/blobdiff - application/views/scripts/error/error.phtml
fixes css regression in newpwd, contact and account
[syj.git] / application / views / scripts / error / error.phtml
index 085621b91e914252b5e0f68582fe956f1f11f766..d567c2f5e953bd1a07dfdd8fcb5fb48588b5c197 100644 (file)
@@ -1,8 +1,17 @@
 <?php
     $this->redirectLinks = false;
 ?>
-  <h1><?php echo $this->translate('An error occurred')?></h1>
-  <h2><?php echo $this->message ?></h2>
+
+<h1><?php echo $this->translate('An error occurred')?></h1>
+<h2><?php
+  $code = Zend_Controller_Front::getInstance()->getResponse()->getHttpResponseCode();
+  printf('%d: %s', $code, Zend_Http_Response::responseCodeAsText($code));
+?>
+</h2>
+
+    <?php if (isset ($this->message)) {
+        echo '<p>' . $this->message . '</p>';
+    }?>
 
   <?php if (isset($this->exception)): ?>
 
   </pre>
 
   <h3>Request Parameters:</h3>
-  <pre><?php echo var_export($this->request->getParams(), true) ?>
+  <pre><?php echo $this->escape(var_export($this->request->getParams(), true)) ?>
   </pre>
   <?php endif ?>
 
-    <p id="message">
+    <p>
     <?php
         if ($this->isServerError) {
             echo $this->translate('Please try again later');