Commit f489adbe authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Changed the messages to use a class instead of a colour

parent b0324df6
......@@ -143,16 +143,7 @@ class Session {
$result = '<div id="messages">';
if (isset($_SESSION['messages'])) {
foreach ($_SESSION['messages'] as $data) {
if ($data['type'] == 'ok') {
$color = 'green';
}
elseif ($data['type'] == 'info') {
$color = '#aa6';
}
else {
$color = 'red';
}
$result .= '<div style="color:' . $color . ';">' . $data['msg'] . '</div>';
$result .= '<div class="' . $data['type'] . '">' . $data['msg'] . '</div>';
}
$_SESSION['messages'] = array();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment