From f198331065d90c54a502ceb396730fd6644bc0b2 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 10 Dec 2008 04:23:48 +0000 Subject: Put profiler into page_bottom() --- core/helpers/core_block.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'core/helpers') diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index 3956528d..f6718e53 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -24,8 +24,12 @@ class core_block_Core { } public static function page_bottom($theme) { - // @todo: guard this with permissions - if (Session::instance()->get("user", false)) { + if (Session::instance()->get("profiler", false)) { + $profiler = new Profiler(); + $profiler->render(); + } + + if (access::can("edit", $theme->item()->id)) { return new View("in_place_edit.html"); } } -- cgit v1.2.3