summaryrefslogtreecommitdiff
path: root/core/libraries/Theme_View.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-01 00:16:08 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-01 00:16:08 +0000
commit7c82691e0057188e07601c30069385c3f17cbff1 (patch)
treea1bc9b21b62314bc34784625b0f1b0e8dfdddb47 /core/libraries/Theme_View.php
parent11d2788af8111a036d2279563fe6a21f374b5b9c (diff)
Move debug CSS into core/css/debug.css, and enable it for admin themes also
Diffstat (limited to 'core/libraries/Theme_View.php')
-rw-r--r--core/libraries/Theme_View.php5
1 files changed, 1 insertions, 4 deletions
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, "<div class=\"gAnnotatedThemeBlock gAnnotatedThemeBlock_$function gClearFix\">" .