Convert a bunch of leftover kohana::show_404 calls to throw

Kohana_404_Exception instead.  These are the ones where we used a
lower-case 'k' so my previous filter didn't catch it.
This commit is contained in:
Bharat Mediratta
2009-12-23 20:51:33 -08:00
parent b62083bd24
commit 057e8d09af
5 changed files with 20 additions and 20 deletions

View File

@@ -77,7 +77,7 @@ class Admin_Users_Controller extends Admin_Controller {
$user = user::lookup($id);
if (empty($user)) {
kohana::show_404();
throw new Kohana_404_Exception();
}
$form = $this->_get_user_delete_form_admin($user);
@@ -98,7 +98,7 @@ class Admin_Users_Controller extends Admin_Controller {
public function delete_user_form($id) {
$user = user::lookup($id);
if (empty($user)) {
kohana::show_404();
throw new Kohana_404_Exception();
}
print $this->_get_user_delete_form_admin($user);
}
@@ -108,7 +108,7 @@ class Admin_Users_Controller extends Admin_Controller {
$user = user::lookup($id);
if (empty($user)) {
kohana::show_404();
throw new Kohana_404_Exception();
}
$form = $this->_get_user_edit_form_admin($user);
@@ -155,7 +155,7 @@ class Admin_Users_Controller extends Admin_Controller {
public function edit_user_form($id) {
$user = user::lookup($id);
if (empty($user)) {
kohana::show_404();
throw new Kohana_404_Exception();
}
$v = new View("user_form.html");
@@ -224,7 +224,7 @@ class Admin_Users_Controller extends Admin_Controller {
$group = group::lookup($id);
if (empty($group)) {
kohana::show_404();
throw new Kohana_404_Exception();
}
$form = $this->_get_group_delete_form_admin($group);
@@ -245,7 +245,7 @@ class Admin_Users_Controller extends Admin_Controller {
public function delete_group_form($id) {
$group = group::lookup($id);
if (empty($group)) {
kohana::show_404();
throw new Kohana_404_Exception();
}
print $this->_get_group_delete_form_admin($group);
@@ -256,7 +256,7 @@ class Admin_Users_Controller extends Admin_Controller {
$group = group::lookup($id);
if (empty($group)) {
kohana::show_404();
throw new Kohana_404_Exception();
}
$form = $this->_get_group_edit_form_admin($group);
@@ -288,7 +288,7 @@ class Admin_Users_Controller extends Admin_Controller {
public function edit_group_form($id) {
$group = group::lookup($id);
if (empty($group)) {
kohana::show_404();
throw new Kohana_404_Exception();
}
print $this->_get_group_edit_form_admin($group);