aboutsummaryrefslogtreecommitdiff
path: root/views/installation/page
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-07 22:18:56 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-07 22:18:56 +0000
commit09627b07545c1c3ef13ac24bf5c496cb69c86bb6 (patch)
treee1d3f95efc4b035cd2f1dbd0898629ed65104825 /views/installation/page
parent101c850e6723d55759a6cf75965a2473ec2a55d5 (diff)
downloadelgg-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.php21
-rw-r--r--views/installation/page/shells/default.php2
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>