diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-07 22:18:56 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-07 22:18:56 +0000 |
commit | 09627b07545c1c3ef13ac24bf5c496cb69c86bb6 (patch) | |
tree | e1d3f95efc4b035cd2f1dbd0898629ed65104825 /views/installation/page/elements | |
parent | 101c850e6723d55759a6cf75965a2473ec2a55d5 (diff) | |
download | elgg-09627b07545c1c3ef13ac24bf5c496cb69c86bb6.tar.gz elgg-09627b07545c1c3ef13ac24bf5c496cb69c86bb6.tar.bz2 |
Fixes #2783 - updated installation message code to mirror default views
git-svn-id: http://code.elgg.org/elgg/trunk@7861 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/installation/page/elements')
-rw-r--r-- | views/installation/page/elements/messages.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/views/installation/page/elements/messages.php b/views/installation/page/elements/messages.php new file mode 100644 index 000000000..2a06a7b1e --- /dev/null +++ b/views/installation/page/elements/messages.php @@ -0,0 +1,21 @@ +<?php +/** + * Lists all system messages + * + * @uses $vars['object'] The array of message registers + */ + +if (isset($vars['object']) && is_array($vars['object']) && sizeof($vars['object']) > 0) { + + echo '<ul class="elgg-system-messages">'; + + foreach ($vars['object'] as $type => $list ) { + foreach ($list as $message) { + echo "<li class=\"elgg-state-$type\">"; + echo autop($message); + echo '</li>'; + } + } + + echo '</ul>'; +} |