From: Reedy Date: Thu, 22 Aug 2013 23:49:01 +0000 (+0100) Subject: Fatal error: Call to a member function formatDuration() on a X-Git-Tag: 1.31.0-rc.0~18901^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=commitdiff_plain;h=01bb5cac0780032e48e2f5893f820ea9380f540c;p=lhc%2Fweb%2Fwiklou.git Fatal error: Call to a member function formatDuration() on a non-object in SpecialUserlogin.php on line 818 Bug: 53246 Change-Id: Ie2b23cefe569b31c2da67e16077d4557c6247bc9 --- diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index 2081dd97ea..4c359637cf 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -815,7 +815,7 @@ class LoginForm extends SpecialPage { break; case self::THROTTLED: $this->mainLoginForm( $this->msg( 'login-throttled' ) - ->params ( $lang->formatDuration( $wgPasswordAttemptThrottle['seconds'] ) ) + ->params ( $this->getLanguage()->formatDuration( $wgPasswordAttemptThrottle['seconds'] ) ) ->text() ); break;