diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-18 06:30:32 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-18 06:30:32 +0000 |
commit | ad16488643017f293dda6b226024751d15cb4426 (patch) | |
tree | cb341549584b0771a255097abf8d9f504035932d /core/libraries | |
parent | 09d0cd6f01f70b2393f56ea5573af03cb8eb5d87 (diff) |
Turn on IN_PRODUCTION mode now across the board. Create our own error
page where we'll show whatever information is useful. Get rid of the
IN_PRODUCTION hack in MY_View.php that we no longer need.
Diffstat (limited to 'core/libraries')
-rw-r--r-- | core/libraries/MY_View.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/core/libraries/MY_View.php b/core/libraries/MY_View.php index 15f4d6a4..836d1087 100644 --- a/core/libraries/MY_View.php +++ b/core/libraries/MY_View.php @@ -27,7 +27,7 @@ class View extends View_Core { parent::__construct($name, $data, $type); $this->set_global("csrf", access::csrf_token()); } - + /** * Override View_Core::render so that we trap errors stemming from bad PHP includes and show a * visible stack trace to help developers. @@ -38,11 +38,6 @@ class View extends View_Core { try { return parent::render($print, $renderer); } catch (Exception $e) { - if (!IN_PRODUCTION) { - print $e->getTraceAsString(); - return $e->getMessage(); - } - Kohana::Log('error', $e->getTraceAsString()); Kohana::Log('debug', $e->getMessage()); return ""; |