diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-12 19:39:38 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-12 19:39:38 +0000 |
| commit | 942dbe175ca1697c0cca99fb7aae03de6ca398e0 (patch) | |
| tree | 4a11b205c730c261961d3000bb471702c16a9f6a /core/controllers/photos.php | |
| parent | 7715aa9c64e190585eda165a31c42de139bcd416 (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 'core/controllers/photos.php')
| -rw-r--r-- | core/controllers/photos.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/controllers/photos.php b/core/controllers/photos.php index c72fae12..5159d66f 100644 --- a/core/controllers/photos.php +++ b/core/controllers/photos.php @@ -27,8 +27,9 @@ class Photos_Controller extends Items_Controller { return Kohana::show_404(); } - // @todo: this needs to be data-driven - $template = new Theme_View("page.html", "photo", "default"); + $theme_name = module::get_var("core", "active_theme", "default"); + + $template = new Theme_View("page.html", "photo", $theme_name); $template->set_global('item', $item); $template->set_global('children', $item->children()); |
