aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/views.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/views.php')
-rw-r--r--engine/lib/views.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php
index d2e63d1a5..17b93926c 100644
--- a/engine/lib/views.php
+++ b/engine/lib/views.php
@@ -563,10 +563,10 @@ function elgg_view_page($title, $body, $page_shell = 'default', $vars = array())
if (count_messages()) {
// get messages - try for errors first
- $sysmessages = system_messages(NULL, "errors");
- if (count($sysmessages["errors"]) == 0) {
+ $messages = system_messages(NULL, "error");
+ if (count($messages["error"]) == 0) {
// no errors so grab rest of messages
- $sysmessages = system_messages(null, "");
+ $messages = system_messages(null, "");
} else {
// we have errors - clear out remaining messages
system_messages(null, "");
@@ -575,7 +575,7 @@ function elgg_view_page($title, $body, $page_shell = 'default', $vars = array())
$vars['title'] = $title;
$vars['body'] = $body;
- $vars['sysmessages'] = $sysmessages;
+ $vars['sysmessages'] = $messages;
// Draw the page
$output = elgg_view("page_shells/$page_shell", $vars);