summaryrefslogtreecommitdiff
path: root/modules/digibug/controllers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-25 13:49:40 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-25 13:51:33 -0800
commit4a417708f00b1ebd5865c8075bb36b7fc0f14756 (patch)
tree6dbc5a9f5ba6adf16d6ea78c991723d97038156b /modules/digibug/controllers
parent33b1d4b7efa8c6b825908f48c7e744578e7f9ae6 (diff)
Kohana::show_404() -> throw new Kohana_404_Exception()
Diffstat (limited to 'modules/digibug/controllers')
-rw-r--r--modules/digibug/controllers/digibug.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/digibug/controllers/digibug.php b/modules/digibug/controllers/digibug.php
index cef42b2d..25f1ca3e 100644
--- a/modules/digibug/controllers/digibug.php
+++ b/modules/digibug/controllers/digibug.php
@@ -61,7 +61,7 @@ class Digibug_Controller extends Controller {
if ($type == "full") {
$remote_addr = ip2long($this->input->server("REMOTE_ADDR"));
if ($remote_addr === false) {
- Kohana::show_404();
+ throw new Kohana_404_Exception();
}
$config = Kohana::config("digibug");
@@ -76,13 +76,13 @@ class Digibug_Controller extends Controller {
}
}
if (!$authorized) {
- Kohana::show_404();
+ throw new Kohana_404_Exception();
}
}
$proxy = ORM::factory("digibug_proxy", array("uuid" => $id));
if (!$proxy->loaded() || !$proxy->item->loaded()) {
- Kohana::show_404();
+ throw new Kohana_404_Exception();
}
$file = $type == "full" ? $proxy->item->file_path() : $proxy->item->thumb_path();