From 7c82691e0057188e07601c30069385c3f17cbff1 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 1 Jan 2009 00:16:08 +0000 Subject: Move debug CSS into core/css/debug.css, and enable it for admin themes also --- core/libraries/Theme_View.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'core/libraries/Theme_View.php') diff --git a/core/libraries/Theme_View.php b/core/libraries/Theme_View.php index d4e7019e..794cb2fb 100644 --- a/core/libraries/Theme_View.php +++ b/core/libraries/Theme_View.php @@ -125,9 +125,6 @@ class Theme_View_Core extends View { case "thumb_info": case "thumb_top": case "photo_bottom": - // @todo: restrict access to this option - $debug = Session::instance()->get("debug", false); - $blocks = array(); foreach (module::installed() as $module) { $helper_class = "{$module->name}_block"; @@ -137,7 +134,7 @@ class Theme_View_Core extends View { array_merge(array($this), $args)); } } - if ($debug) { + if (Session::instance()->get("debug")) { if ($function != "head") { array_unshift( $blocks, "
" . -- cgit v1.2.3