summaryrefslogtreecommitdiff
path: root/system/libraries/Controller.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-29 22:28:48 -0700
committerBharat Mediratta <bharat@menalto.com>2009-05-29 22:28:48 -0700
commitf660eb55aa9535c10f91ad2812fa073589fcae2b (patch)
tree11d8727061378408bbc16ede888a058ba20542fb /system/libraries/Controller.php
parent0097803efc1c71711bf9ccf5015fe43e75f8f28d (diff)
parentce285b8feba2f9c495fb153517c2a582421f50e0 (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'system/libraries/Controller.php')
-rw-r--r--system/libraries/Controller.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/system/libraries/Controller.php b/system/libraries/Controller.php
index d111f25e..2f64c211 100644
--- a/system/libraries/Controller.php
+++ b/system/libraries/Controller.php
@@ -3,7 +3,7 @@
* Kohana Controller class. The controller class must be extended to work
* properly, so this class is defined as abstract.
*
- * $Id: Controller.php 3979 2009-02-13 16:46:12Z zombor $
+ * $Id: Controller.php 4365 2009-05-27 21:09:27Z samsoir $
*
* @package Core
* @author Kohana Team
@@ -69,7 +69,15 @@ abstract class Controller_Core {
// Views are straight HTML pages with embedded PHP, so importing them
// this way insures that $this can be accessed as if the user was in
// the controller, which gives the easiest access to libraries in views
- include $kohana_view_filename;
+ try
+ {
+ include $kohana_view_filename;
+ }
+ catch (Exception $e)
+ {
+ ob_end_clean();
+ throw $e;
+ }
// Fetch the output and close the buffer
return ob_get_clean();