Commit 4ef7f722 authored by Richard Mansfield's avatar Richard Mansfield

Put messages are in a div with an id 'messages'

parent c446f03f
......@@ -220,7 +220,7 @@ class Session {
* @return string The HTML representing all of the session messages.
*/
public function render_messages() {
$result = '';
$result = '<div id="messages">';
if (isset($_SESSION['messages'])) {
foreach ($_SESSION['messages'] as $data) {
if ($data['type'] == 'ok') {
......@@ -236,6 +236,7 @@ class Session {
}
$_SESSION['messages'] = array();
}
$result .= '</div>';
return $result;
}
......
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