summaryrefslogtreecommitdiff
path: root/core/helpers/core_block.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/helpers/core_block.php')
-rw-r--r--core/helpers/core_block.php14
1 files changed, 14 insertions, 0 deletions
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 "<link rel=\"stylesheet\" type=\"text/css\" href=\"" .
+ url::file("core/css/debug.css") . "\" />";
+ }
+ }
+
+ public static function admin_head($theme) {
+ if (Session::instance()->get("debug")) {
+ return "<link rel=\"stylesheet\" type=\"text/css\" href=\"" .
+ url::file("core/css/debug.css") . "\" />";
+ }
+ }
+
public static function page_bottom($theme) {
if (Session::instance()->get("profiler", false)) {
$profiler = new Profiler();