aboutsummaryrefslogtreecommitdiff
path: root/views/default/messages/errors/list.php
blob: 5e4b2ff31a28cd1911230b212fc0745056aa64e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
 * Elgg list errors
 * Lists error messages
 *
 * @package Elgg
 * @subpackage Core
 * @author Curverider Ltd
 * @link http://elgg.org/
 *
 * @uses $vars['object'] An array of error messages
 */

if (!empty($vars['object']) && is_array($vars['object'])) {

?>
<div id="elgg_system_message" class="hidden radius8 error">
<script type="text/javascript">$(document).ready(function(){ elgg_system_message() });</script>
<?php
	foreach($vars['object'] as $error) {
		echo elgg_view('messages/errors/error',array('object' => $error));
	}
?>
</div>
<?php
}