From 19e75b1e2ed73521b3cad01e55d546d3a6b55587 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 15 Dec 2008 00:37:31 +0000 Subject: mark unauthorized exception w/ a @todo --- core/controllers/admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/controllers/admin.php b/core/controllers/admin.php index b082d779..f00d3fdf 100644 --- a/core/controllers/admin.php +++ b/core/controllers/admin.php @@ -22,13 +22,13 @@ class Admin_Controller extends Controller { public function __construct() { if (!(user::active()->admin)) { - throw new Exception("Unauthorized", 401); + throw new Exception("@todo UNAUTHORIZED", 401); } // giving default is probably overkill $this->theme_name = module::get_var("core", "active_admin_theme", "default_admin"); parent::__construct(); } - + public function index() { // For now, in order not to duplicate js and css, keep the regular ("item") // theme in addition to admin theme. -- cgit v1.2.3