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/helpers/core_block.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'core/helpers/core_block.php') diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index 1bc70a13..c82ca53d 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -19,6 +19,20 @@ */ class core_block_Core { + public static function head($theme) { + if (Session::instance()->get("debug")) { + return ""; + } + } + + public static function admin_head($theme) { + if (Session::instance()->get("debug")) { + return ""; + } + } + public static function page_bottom($theme) { if (Session::instance()->get("profiler", false)) { $profiler = new Profiler(); -- cgit v1.2.3