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/Admin_View.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/libraries/Admin_View.php') diff --git a/core/libraries/Admin_View.php b/core/libraries/Admin_View.php index 332be596..267d06e8 100644 --- a/core/libraries/Admin_View.php +++ b/core/libraries/Admin_View.php @@ -98,6 +98,16 @@ class Admin_View_Core extends View { array_merge(array($this), $args)); } } + + if (Session::instance()->get("debug")) { + if ($function != "admin_head") { + array_unshift( + $blocks, "
" . + "
$function
"); + $blocks[] = "
"; + } + } + return implode("\n", $blocks); default: -- cgit v1.2.3