X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialCreateAccount.php;h=73beafce0f5ece6a1e732256de2ca7c1d25de260;hb=5111bd2def4e63ecc8a2acbf468e5c39029f9efd;hp=2b43a49cee02da14087cb606cd475f040351f29e;hpb=c1efb8dfee7f57dc680df42980b7df4f636b5560;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialCreateAccount.php b/includes/specials/SpecialCreateAccount.php index 2b43a49cee..73beafce0f 100644 --- a/includes/specials/SpecialCreateAccount.php +++ b/includes/specials/SpecialCreateAccount.php @@ -119,7 +119,12 @@ class SpecialCreateAccount extends LoginSignupSpecialPage { } else { $out->addWikiMsg( 'accountcreatedtext', $user->getName() ); } - $out->addReturnTo( $this->getPageTitle() ); + + $rt = Title::newFromText( $this->mReturnTo ); + $out->addReturnTo( + ( $rt && !$rt->isExternal() ) ? $rt : $this->getPageTitle(), + wfCgiToArray( $this->mReturnToQuery ) + ); return; } }