aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-27 00:07:31 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-27 00:07:31 +0000
commit4586dea35c98de2fdc071b7a6e5babbbb7145633 (patch)
tree9544d217732f10dfda97f06701b9293d30d2b992 /views
parent5cc3cd1947f561d97f2c8fdb860aef8d5d9219cf (diff)
downloadelgg-4586dea35c98de2fdc071b7a6e5babbbb7145633.tar.gz
elgg-4586dea35c98de2fdc071b7a6e5babbbb7145633.tar.bz2
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
Diffstat (limited to 'views')
-rw-r--r--views/default/page/admin.php14
1 files changed, 1 insertions, 13 deletions
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()) {