Commit 51e90d63 authored by Piers Harding's avatar Piers Harding
Browse files

Bug #579762 site disabled for upgrade message fails to appear


Signed-off-by: default avatarPiers Harding <piers@catalyst.net.nz>
parent d5905e1f
......@@ -923,7 +923,7 @@ class LiveUser extends User {
$siteclosedforupgrade = get_config('siteclosed');
if ($siteclosedforupgrade && get_config('disablelogin')) {
global $SESSION;
$SESSION->add_error_msg(get_string('siteclosedlogindisabled'));
$SESSION->add_error_msg(get_string('siteclosedlogindisabled', 'mahara', get_config('wwwroot') . 'admin/upgrade.php'), false);
return false;
}
if (!$user->admin && ($siteclosedforupgrade || get_config('siteclosedbyadmin'))) {
......
Supports Markdown
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