Commit 8425cfea authored by Robert Lyon's avatar Robert Lyon Committed by Aaron Wells

Render_messages placement option breaks install

Bug #1248318

This fixes a regression caused by https://reviews.mahara.org/#/c/2687

Change-Id: I0ca13766336db11c9358995fa0d0f1b9d1950da1
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 90b43e3e
......@@ -183,7 +183,7 @@ class Session {
* @return string The HTML representing all of the session messages assigned
* to $placement.
*/
public function render_messages($placement) {
public function render_messages($placement = 'messages') {
global $THEME;
$result = '<div id="' . $placement . '">';
if (isset($_SESSION['messages'])) {
......
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