summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/photos.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2010-02-12 16:40:44 -0800
committerAndy Staudacher <andy.st@gmail.com>2010-02-12 16:40:44 -0800
commitd53f6d0e052fb455059170a311640fcd06cad798 (patch)
tree70541a2a2680b1febaf4383cdf9581b56bd66573 /modules/gallery/controllers/photos.php
parentce71ea6aa7eac72e54b1a9d7722c87beb61327de (diff)
Fix for tickets 1009 and 603: Show a themed error page to guests / registered users (not to admins though). And show a login form to guests for 404 (incl. insufficient view permissions) errors.
Diffstat (limited to 'modules/gallery/controllers/photos.php')
-rw-r--r--modules/gallery/controllers/photos.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/controllers/photos.php b/modules/gallery/controllers/photos.php
index f2d47eec..2a77aea4 100644
--- a/modules/gallery/controllers/photos.php
+++ b/modules/gallery/controllers/photos.php
@@ -22,7 +22,7 @@ class Photos_Controller extends Items_Controller {
if (!is_object($photo)) {
// show() must be public because we route to it in url::parse_url(), so make
// sure that we're actually receiving an object
- throw new Kohana_404_Exception();
+ Event::run('system.404');
}
access::required("view", $photo);