diff options
author | Felix Rabinovich <virshu@users.sourceforge.net> | 2008-12-14 04:16:38 +0000 |
---|---|---|
committer | Felix Rabinovich <virshu@users.sourceforge.net> | 2008-12-14 04:16:38 +0000 |
commit | cb92d1a70dfe6e14c9f76b322bff038564acc7d6 (patch) | |
tree | 6ae4b8b7b979195e9e879b356b08e262cd60ce07 /core/controllers | |
parent | 1c279887aa261c887a4695f93c9aa18f012fe72a (diff) |
1. fix up the <link> and <script> elements in the dashboard <head>.
2. made the images work properly
Diffstat (limited to 'core/controllers')
-rw-r--r-- | core/controllers/admin.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/controllers/admin.php b/core/controllers/admin.php index ee2d88ff..5fadd885 100644 --- a/core/controllers/admin.php +++ b/core/controllers/admin.php @@ -21,8 +21,14 @@ class Admin_Controller extends Controller { public function dashboard() { // giving default is probably overkill $theme_name = module::get_var("core", "active_admin_theme", "default_admin"); + // For now, in order not to duplicate js and css, keep the regular ("item") + // theme in addition to admin theme. + // Be careful, though - new Theme_View sets global theme as well! + $item_theme_name = module::get_var("core", "active_theme", "default"); + $item_theme = new Theme_View("album.html", "album", $item_theme_name); $template = new Theme_View("dashboard.html", "admin", $theme_name); + $template->item_theme = $item_theme; print $template; } |