aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/shells/admin.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-08 03:34:27 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-08 03:34:27 +0000
commit44b5bfdf1fb994d91757be63cf4d4b4e8cc8b63d (patch)
treec78663cbb0eb0c22c48a96a9b71ae2cb46d186d8 /views/default/layout/shells/admin.php
parentccc3bca78bb319d130daa3aae2f2af964ca79f4f (diff)
downloadelgg-44b5bfdf1fb994d91757be63cf4d4b4e8cc8b63d.tar.gz
elgg-44b5bfdf1fb994d91757be63cf4d4b4e8cc8b63d.tar.bz2
rough system messages implementation for admin backend
git-svn-id: http://code.elgg.org/elgg/trunk@8068 36083f99-b078-4883-b0ff-0f9b5a30f544
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