r43984 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43983‎ | r43984 | r43985 >
Date:19:22, 26 November 2008
Author:btongminh
Status:ok
Tags:
Comment:
Make returnto parameter work as well with cookieRedirect
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUserlogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUserlogin.php
@@ -926,7 +926,9 @@
927927 global $wgOut;
928928
929929 $titleObj = SpecialPage::getTitleFor( 'Userlogin' );
930 - $check = $titleObj->getFullURL( 'wpCookieCheck='.$type );
 930+ $query = array( 'wpCookieCheck' => $type );
 931+ if ( $this->mReturnTo ) $query['returnto'] = $this->mReturnTo;
 932+ $check = $titleObj->getFullURL( $query );
931933
932934 return $wgOut->redirect( $check );
933935 }

Status & tagging log