Kohana::show_404() -> throw new Kohana_404_Exception()

This commit is contained in:
Bharat Mediratta
2009-11-25 13:51:33 -08:00
parent 33b1d4b7ef
commit 4a417708f0
6 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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