From 942dbe175ca1697c0cca99fb7aae03de6ca398e0 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 12 Dec 2008 19:39:38 +0000 Subject: Remove a couple of todo's by store the "theme name", "admin theme name" and "page size" in the vars table and initializing when the core module is installed --- modules/tag/controllers/tags.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/tag/controllers/tags.php b/modules/tag/controllers/tags.php index 34474be5..304d9bd0 100644 --- a/modules/tag/controllers/tags.php +++ b/modules/tag/controllers/tags.php @@ -21,9 +21,8 @@ class Tags_Controller extends REST_Controller { protected $resource_type = "tag"; public function _show($tag) { - // @todo: these need to be pulled from the database - $theme_name = "default"; - $page_size = 9; + $theme_name = module::get_var("core", "active_theme", "default"); + $page_size = module::set_var("core", "page_size", 9); $template = new Theme_View("page.html", "tag", $theme_name); -- cgit v1.2.3