diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-10 04:23:48 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-10 04:23:48 +0000 |
commit | f198331065d90c54a502ceb396730fd6644bc0b2 (patch) | |
tree | f8a5eb5873dcdcfcd267b59e7d7054059476dcc2 /core/helpers | |
parent | 5ebd0854beeb306712287931af45949b8ec0592f (diff) |
Put profiler into page_bottom()
Diffstat (limited to 'core/helpers')
-rw-r--r-- | core/helpers/core_block.php | 8 |
1 files changed, 6 insertions, 2 deletions
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"); } } |