summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-12-12 19:39:38 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-12-12 19:39:38 +0000
commit942dbe175ca1697c0cca99fb7aae03de6ca398e0 (patch)
tree4a11b205c730c261961d3000bb471702c16a9f6a /modules
parent7715aa9c64e190585eda165a31c42de139bcd416 (diff)
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
Diffstat (limited to 'modules')
-rw-r--r--modules/tag/controllers/tags.php5
1 files changed, 2 insertions, 3 deletions
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);