From b46bfdd4921e27ed472aabfd06ab7c95f30e7e62 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 29 Dec 2008 00:35:31 +0000 Subject: Separate permanent messages out of the message helper and put them into site_status. Show site status in the header in the admin theme. --- core/libraries/Admin_View.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/libraries') diff --git a/core/libraries/Admin_View.php b/core/libraries/Admin_View.php index 134db943..803b8942 100644 --- a/core/libraries/Admin_View.php +++ b/core/libraries/Admin_View.php @@ -61,6 +61,13 @@ class Admin_View_Core extends View { print $menu; } + /** + * Print out any site wide status information. This is for admins only. + */ + public function site_status() { + return site_status::get(); + } + /** * Print out any messages waiting for this user. */ @@ -73,8 +80,11 @@ class Admin_View_Core extends View { */ public function __call($function, $args) { switch ($function) { + case "admin_credits"; case "admin_dashboard_blocks": case "admin_footer": + case "admin_header_top": + case "admin_header_bottom": case "admin_page_bottom": case "admin_page_top": case "admin_sidebar_blocks": -- cgit v1.2.3