diff --git a/classes/ExceptionDisplay.php b/classes/ExceptionDisplay.php index 36a998e..294268f 100644 --- a/classes/ExceptionDisplay.php +++ b/classes/ExceptionDisplay.php @@ -41,22 +41,36 @@ if (!defined('IN_AUTOINDEX') || !IN_AUTOINDEX) */ class ExceptionDisplay extends ExceptionFatal { + protected $request; + protected $language; /** * @return string The HTML text to display */ public function __toString() { - global $words, $_SERVER, $_GET; - $str = '
' . $this -> message . '

' . (isset($words) ? $words -> __get('continue') : 'Continue') - . '.

'; + global $request, $words; + + $this->language = $words; + $this->request = is_object($request) ? $request : new RequestVars('', false); + + $str = ' + + + + +
' . $this->message . ' +

+ ' . (isset($this->language) ? $this->language->__get('continue') : 'Continue') . '. +

+
'; $temp = new Display($str); - return $temp -> __toString(); + return $temp->__toString(); } } -?> \ No newline at end of file +?>