Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -88,7 +88,7 @@ |
89 | 89 | } |
90 | 90 | |
91 | 91 | class ExtMobileFrontend { |
92 | | - const VERSION = '0.5.91'; |
| 92 | + const VERSION = '0.5.92'; |
93 | 93 | |
94 | 94 | /** |
95 | 95 | * @var DOMDocument |
— | — | @@ -589,9 +589,14 @@ |
590 | 590 | |
591 | 591 | if ( self::$title->isSpecial( 'Userlogin' ) && self::$isBetaGroupMember ) { |
592 | 592 | self::$wsLoginToken = $wgRequest->getSessionData( 'wsLoginToken' ); |
| 593 | + $q = array( 'action' => 'submitlogin' ); |
593 | 594 | $returnToVal = $wgRequest->getVal( 'returnto' ); |
594 | | - $returnto = ( !empty( $returnToVal ) ) ? '&returnto=' . wfUrlencode( $returnToVal ) : ''; |
595 | | - self::$wsLoginFormAction = self::$title->getLocalURL( 'action=submitlogin&type=login' . $returnto ); |
| 595 | + |
| 596 | + if ( !empty( $returnToVal ) ) { |
| 597 | + $q['returnto'] = $returnToVal; |
| 598 | + } |
| 599 | + |
| 600 | + self::$wsLoginFormAction = self::$title->getLocalURL( $q ); |
596 | 601 | } |
597 | 602 | |
598 | 603 | $this->setDefaultLogo(); |