summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Admin_View.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-27 17:12:13 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-27 17:12:13 -0800
commit22149b52c309152b3e0e186159df9e80ae5c28f8 (patch)
treeaa97b4b534eeda419d4319f74a89bc9a07eacaee /modules/gallery/libraries/Admin_View.php
parentce183e5a698cf0611a68d11fad5a490a91aa9350 (diff)
Move the theme fallback checking into theme::load_themes() so that
we're calling it once per request.
Diffstat (limited to 'modules/gallery/libraries/Admin_View.php')
-rw-r--r--modules/gallery/libraries/Admin_View.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/gallery/libraries/Admin_View.php b/modules/gallery/libraries/Admin_View.php
index cbb781a1..a990e4ca 100644
--- a/modules/gallery/libraries/Admin_View.php
+++ b/modules/gallery/libraries/Admin_View.php
@@ -27,12 +27,6 @@ class Admin_View_Core extends Gallery_View {
* @return void
*/
public function __construct($name) {
- $theme_name = module::get_var("gallery", "active_admin_theme");
- if (!file_exists(THEMEPATH . $theme_name)) {
- module::set_var("gallery", "active_admin_theme", "admin_wind");
- theme::load_themes();
- Kohana::log("error", "Unable to locate theme '$theme_name', switching to default theme.");
- }
parent::__construct($name);
$this->theme_name = module::get_var("gallery", "active_admin_theme");