Index: trunk/phase3/includes/SpecialUserlogin.php |
— | — | @@ -421,7 +421,11 @@ |
422 | 422 | $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
423 | 423 | $wgOut->setArticleRelated( false ); |
424 | 424 | $wgOut->addWikiText( $msg ); |
425 | | - $wgOut->returnToMain( $auto ); |
| 425 | + if ( !empty( $this->mReturnto ) ) { |
| 426 | + $wgOut->returnToMain( $auto, $this->mReturnTo ); |
| 427 | + } else { |
| 428 | + $wgOut->returnToMain( $auto ); |
| 429 | + } |
426 | 430 | } |
427 | 431 | |
428 | 432 | /** */ |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -137,6 +137,7 @@ |
138 | 138 | * (bug 5751) Updates to Portuguese localisation files |
139 | 139 | * (bug 5741) Introduce {{NUMBEROFUSERS}} magic word |
140 | 140 | * (bug 93) <nowiki> tags and tildes in templates |
| 141 | +* The returnto parameter is now actually used by SpecialUserlogin.php |
141 | 142 | |
142 | 143 | == Compatibility == |
143 | 144 | |