From c7193f9b2ede6ed913d16a9a8047b6867b8afada Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 24 Dec 2008 04:22:22 +0000 Subject: Normalize our Admin controllers so that functions always print out their results, as opposed to having them return their view back upstream. This is a little more code in every controller, but it's much less magical and more consistent. Look up the active_theme and active_admin_theme inside the view itself, no need to do that in the controllers. This makes view initialization easier in the controllers. --- modules/tag/controllers/tags.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/tag') diff --git a/modules/tag/controllers/tags.php b/modules/tag/controllers/tags.php index 94890639..d87ab8e8 100644 --- a/modules/tag/controllers/tags.php +++ b/modules/tag/controllers/tags.php @@ -21,7 +21,6 @@ class Tags_Controller extends REST_Controller { protected $resource_type = "tag"; public function _show($tag) { - $theme_name = module::get_var("core", "active_theme", "default"); $page_size = module::get_var("core", "page_size", 9); $page = $this->input->get("page", "1"); $children_count = $tag->items_count(); @@ -32,7 +31,7 @@ class Tags_Controller extends REST_Controller { Kohana::show_404(); } - $template = new Theme_View("page.html", "tag", $theme_name); + $template = new Theme_View("page.html", "tag"); $template->set_global('page_size', $page_size); $template->set_global('tag', $tag); $template->set_global('children', $tag->items($page_size, $offset)); -- cgit v1.2.3