aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/shells/admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/layout/shells/admin.php')
-rw-r--r--views/default/layout/shells/admin.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/views/default/layout/shells/admin.php b/views/default/layout/shells/admin.php
index 64144830f..988606ec1 100644
--- a/views/default/layout/shells/admin.php
+++ b/views/default/layout/shells/admin.php
@@ -37,6 +37,23 @@ $logout = elgg_view('output/url', array(
</div>
</div>
+<?php
+// @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, "");
+ }
+}
+echo elgg_view('page/elements/messages', array('object' => $messages));
+?>
+
<div class="elgg-page-body">
<div class="elgg-sidebar clearfix">
<?php