← Back to team overview

mahara-contributors team mailing list archive

[Bug 579762] Re: site disabled for upgrade message fails to appear

 

diff --git a/htdocs/auth/user.php b/htdocs/auth/user.php
index c1b88fb..75f7e41 100644
--- a/htdocs/auth/user.php
+++ b/htdocs/auth/user.php
@@ -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'))) {


** Also affects: mahara/1.2
   Importance: Undecided
       Status: New

** Also affects: mahara/1.3
   Importance: Undecided
       Status: New

** Also affects: mahara/trunk
   Importance: Undecided
       Status: New

-- 
site disabled for upgrade message fails to appear
https://bugs.launchpad.net/bugs/579762
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.

Status in Mahara ePortfolio: New
Status in Mahara 1.2 series: New
Status in Mahara 1.3 series: New
Status in Mahara trunk series: New

Bug description:
site disabled for upgrade message fails to appear when user logs in after code upgrade for 1.2, and trunk (pre 1.3).  This is because an error message fails on translation because it expects a parameter to be passed to sprintf for substitution.





References