mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-30 02:46:19 -04:00
Kohana::show_404() -> throw new Kohana_404_Exception()
This commit is contained in:
@@ -21,7 +21,7 @@ class Items_Controller extends Controller {
|
||||
public function __call($function, $args) {
|
||||
$item = ORM::factory("item", (int)$function);
|
||||
if (!$item->loaded()) {
|
||||
return Kohana::show_404();
|
||||
throw new Kohana_404_Exception();
|
||||
}
|
||||
// Redirect to the more specific resource type, since it will render
|
||||
// differently. We could also just delegate here, but it feels more appropriate
|
||||
|
||||
Reference in New Issue
Block a user