Fatal error: Call to a member function formatDuration() on a
authorReedy <reedy@wikimedia.org>
Thu, 22 Aug 2013 23:49:01 +0000 (00:49 +0100)
committerReedy <reedy@wikimedia.org>
Thu, 22 Aug 2013 23:49:01 +0000 (00:49 +0100)
non-object in SpecialUserlogin.php on line 818

Bug: 53246
Change-Id: Ie2b23cefe569b31c2da67e16077d4557c6247bc9

includes/specials/SpecialUserlogin.php

index 2081dd9..4c35963 100644 (file)
@@ -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;