summaryrefslogtreecommitdiff
path: root/modules/user/controllers/admin_users.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-23 20:51:33 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-23 20:51:33 -0800
commit057e8d09afaecd27f672f804a6a65341578d50fd (patch)
treed0a039076270f3d037c77b615772dcf0f6ea9326 /modules/user/controllers/admin_users.php
parentb62083bd24b7e5fa079726dc0819fb646c31192b (diff)
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.
Diffstat (limited to 'modules/user/controllers/admin_users.php')
-rw-r--r--modules/user/controllers/admin_users.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/user/controllers/admin_users.php b/modules/user/controllers/admin_users.php
index ee65efd2..96b86fff 100644
--- a/modules/user/controllers/admin_users.php
+++ b/modules/user/controllers/admin_users.php
@@ -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);