diff options
| author | Andy Staudacher <andy.st@gmail.com> | 2010-02-12 16:40:44 -0800 |
|---|---|---|
| committer | Andy Staudacher <andy.st@gmail.com> | 2010-02-12 16:40:44 -0800 |
| commit | d53f6d0e052fb455059170a311640fcd06cad798 (patch) | |
| tree | 70541a2a2680b1febaf4383cdf9581b56bd66573 /modules/gallery/controllers/items.php | |
| parent | ce71ea6aa7eac72e54b1a9d7722c87beb61327de (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/items.php')
| -rw-r--r-- | modules/gallery/controllers/items.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/controllers/items.php b/modules/gallery/controllers/items.php index f261e3a9..0bd47b2d 100644 --- a/modules/gallery/controllers/items.php +++ b/modules/gallery/controllers/items.php @@ -21,7 +21,7 @@ class Items_Controller extends Controller { public function __call($function, $args) { $item = ORM::factory("item", (int)$function); if (!$item->loaded()) { - throw new Kohana_404_Exception(); + Event::run('system.404'); } // Redirect to the more specific resource type, since it will render |
