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 | |
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')
-rw-r--r-- | views/installation/page/elements/messages.php | 21 | ||||
-rw-r--r-- | views/installation/page/shells/default.php | 2 |
2 files changed, 22 insertions, 1 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>'; +} diff --git a/views/installation/page/shells/default.php b/views/installation/page/shells/default.php index fbc5ccbf2..abee13dba 100644 --- a/views/installation/page/shells/default.php +++ b/views/installation/page/shells/default.php @@ -40,7 +40,7 @@ header('Expires: Fri, 05 Feb 1982 00:00:00 -0500', TRUE); </div> <div id="elgg-content"> <h2><?php echo $vars['title']; ?></h2> - <?php echo elgg_view('messages/list', array('object' => $vars['sysmessages'])); ?> + <?php echo elgg_view('page/elements/messages', array('object' => $vars['sysmessages'])); ?> <?php echo $vars['body']; ?> </div> <div class="clearfloat"></div> |