summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-07-30 05:48:12 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-07-30 05:48:12 -0700
commitf50151cf1840b1d9d528b76ac9fc4ed20a351759 (patch)
tree51481b25663a61dd98c6e47e55ff0ee824bf413b /modules/gallery/libraries
parent21e3e86885b9f1b430a98553810327ac573412ca (diff)
parent7b8ed1079624eefae8d83fac89caa0eaa3fc9ef4 (diff)
Merge branch 'master' into dialog
Diffstat (limited to 'modules/gallery/libraries')
-rw-r--r--modules/gallery/libraries/MY_View.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery/libraries/MY_View.php b/modules/gallery/libraries/MY_View.php
index d76e25ff..ded77792 100644
--- a/modules/gallery/libraries/MY_View.php
+++ b/modules/gallery/libraries/MY_View.php
@@ -67,6 +67,10 @@ class View extends View_Core {
try {
$this->kohana_local_data = array_merge(View::$global_data, $this->kohana_local_data);
return parent::render($print, $renderer, $modifier);
+ } catch (ORM_Validation_Exception $e) {
+ Kohana_Log::add("error", $e->getMessage() . "\n" . $e->getTraceAsString());
+ Kohana_Log::add("error", "Validation errors: " . print_r($e->validation->errors(), 1));
+ return "";
} catch (Exception $e) {
Kohana_Log::add("error", $e->getMessage() . "\n" . $e->getTraceAsString());
return "";