]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed the AWHOL state of system messages on admin pages
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 27 Feb 2011 00:07:31 +0000 (00:07 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 27 Feb 2011 00:07:31 +0000 (00:07 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8504 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/page/admin.php

index fcf188af1c9941f8961af2ae7e0a0ab99c7a657d..0738991d3cd594bc095154ad75bd3d8187dcadf0 100644 (file)
 // 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()) {