r13918 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r13917‎ | r13918 | r13919 >
Date:07:31, 29 April 2006
Author:wegge
Status:old
Tags:
Comment:
Use the returnto parameter on successfull login
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialUserlogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialUserlogin.php
@@ -421,7 +421,11 @@
422422 $wgOut->setRobotpolicy( 'noindex,nofollow' );
423423 $wgOut->setArticleRelated( false );
424424 $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+ }
426430 }
427431
428432 /** */
Index: trunk/phase3/RELEASE-NOTES
@@ -137,6 +137,7 @@
138138 * (bug 5751) Updates to Portuguese localisation files
139139 * (bug 5741) Introduce {{NUMBEROFUSERS}} magic word
140140 * (bug 93) <nowiki> tags and tildes in templates
 141+* The returnto parameter is now actually used by SpecialUserlogin.php
141142
142143 == Compatibility ==
143144

Status & tagging log