Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -88,7 +88,7 @@ |
89 | 89 | } |
90 | 90 | |
91 | 91 | class ExtMobileFrontend { |
92 | | - const VERSION = '0.5.89'; |
| 92 | + const VERSION = '0.5.90'; |
93 | 93 | |
94 | 94 | /** |
95 | 95 | * @var DOMDocument |
— | — | @@ -586,7 +586,7 @@ |
587 | 587 | $this->sendApplicationVersionVaryHeader(); |
588 | 588 | $this->checkUserStatus(); |
589 | 589 | |
590 | | - if ( self::$title == 'Special:UserLogin' && self::$isBetaGroupMember ) { |
| 590 | + if ( self::$title->isSpecial( 'Userlogin' ) && self::$isBetaGroupMember ) { |
591 | 591 | self::$wsLoginToken = $wgRequest->getSessionData( 'wsLoginToken' ); |
592 | 592 | $returnToVal = $wgRequest->getVal( 'returnto' ); |
593 | 593 | $returnto = ( !empty( $returnToVal ) ) ? '&returnto=' . wfUrlencode( $returnToVal ) : ''; |
— | — | @@ -1182,7 +1182,7 @@ |
1183 | 1183 | $logoutHtml = $this->doc->saveXML( $ptLogoutLink, LIBXML_NOEMPTYTAG ); |
1184 | 1184 | } |
1185 | 1185 | |
1186 | | - if ( self::$title == 'Special:UserLogin' && self::$isBetaGroupMember ) { |
| 1186 | + if ( self::$title->isSpecial( 'Userlogin' ) && self::$isBetaGroupMember ) { |
1187 | 1187 | $userlogin = $this->doc->getElementById( 'userloginForm' ); |
1188 | 1188 | |
1189 | 1189 | if ( !empty( $userlogin ) && get_class($userlogin) === 'DOMElement' ) { |
— | — | @@ -1275,7 +1275,7 @@ |
1276 | 1276 | $redLink->parentNode->replaceChild( $spanNode, $redLink ); |
1277 | 1277 | } |
1278 | 1278 | |
1279 | | - if ( self::$title == 'Special:UserLogin' && self::$isBetaGroupMember ) { |
| 1279 | + if ( self::$title->isSpecial( 'Userlogin' ) && self::$isBetaGroupMember ) { |
1280 | 1280 | if ( !empty( $userlogin ) && get_class($userlogin) === 'DOMElement' ) { |
1281 | 1281 | $login = $this->renderLogin(); |
1282 | 1282 | $loginNode = $this->doc->importNode( $login, true ); |