From b526cc8c0bea4033a1ffadd6706f073f9cb90eeb Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 22 Dec 2008 03:53:36 +0000 Subject: Add some admin theme callbacks and make them explicitly admin_xxx for consistency with the callbacks in the xxx_block helpers. So in the theme we have: admin.html.php: $theme->admin_page_bottom() then in the helpers: core_block.php: function admin_page_bottom() { } --- core/helpers/core_block.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/helpers/core_block.php') diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index 06354a10..ec1ee066 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -30,6 +30,13 @@ class core_block_Core { } } + public static function admin_page_bottom($theme) { + if (Session::instance()->get("profiler", false)) { + $profiler = new Profiler(); + $profiler->render(); + } + } + public static function admin_dashboard_blocks($theme) { $block = new Block(); $block->id = "gWelcome"; -- cgit v1.2.3