From 4586dea35c98de2fdc071b7a6e5babbbb7145633 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 27 Feb 2011 00:07:31 +0000 Subject: fixed the AWHOL state of system messages on admin pages git-svn-id: http://code.elgg.org/elgg/trunk@8504 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/page/admin.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'views/default/page/admin.php') diff --git a/views/default/page/admin.php b/views/default/page/admin.php index fcf188af1..0738991d3 100644 --- a/views/default/page/admin.php +++ b/views/default/page/admin.php @@ -13,19 +13,7 @@ // Set the content type header("Content-type: text/html; charset=UTF-8"); -// @todo clean up system messages code -$messages = null; -if (count_messages()) { - // get messages - try for errors first - $messages = system_messages(NULL, "error"); - if (count($messages["error"]) == 0) { - // no errors so grab rest of messages - $messages = system_messages(null, ""); - } else { - // we have errors - clear out remaining messages - system_messages(null, ""); - } -} +$messages = $vars['sysmessages']; $notices_html = ''; if ($notices = elgg_get_admin_notices()) { -- cgit v1.2.3