diff options
Diffstat (limited to 'core/controllers/admin.php')
-rw-r--r-- | core/controllers/admin.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/core/controllers/admin.php b/core/controllers/admin.php index 6e44c54e..6f4ec47a 100644 --- a/core/controllers/admin.php +++ b/core/controllers/admin.php @@ -24,14 +24,9 @@ class Admin_Controller extends Controller { if (!(user::active()->admin)) { throw new Exception("@todo UNAUTHORIZED", 401); } - $this->theme = $theme; parent::__construct(); } - public function theme() { - return $this->theme; - } - public function __call($controller_name, $args) { if (request::method() == "post") { access::verify_csrf(); @@ -48,11 +43,7 @@ class Admin_Controller extends Controller { $method = "index"; } - $theme_name = module::get_var("core", "active_admin_theme", "admin_default"); - $this->template = $template = new Admin_View("admin.html", $theme_name); - $template->content = call_user_func_array( - array(new $controller_name($template), $method), $args); - print $template; + call_user_func_array(array(new $controller_name, $method), $args); } } |