summaryrefslogtreecommitdiff
path: root/core/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'core/libraries')
-rw-r--r--core/libraries/MY_View.php7
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 "";