* (bug 4842) Fix 'show number of watching users' with enhanced RC
* (bug 4889) Fix image talk namespace for Tamil
* (bug 4147) Added cleanupWatchlist.php to clear out bogus watchlist entries
+* (partial bug 3456) Disable auto redirect to Main Page after account creation
=== Caveats ===
wfRunHooks( 'AddNewAccount' );
if( $this->hasSessionCookie() ) {
- return $this->successfulLogin( wfMsg( 'welcomecreation', $wgUser->getName() ) );
+ return $this->successfulLogin( wfMsg( 'welcomecreation', $wgUser->getName() ), false );
} else {
return $this->cookieRedirectCheck( 'new' );
}
/**
- * @param string $msg Message that will be shown on success.
+ * @param string $msg Message that will be shown on success
+ * @param bool $auto Toggle auto-redirect to main page; default true
* @access private
*/
- function successfulLogin( $msg ) {
+ function successfulLogin( $msg, $auto = true ) {
global $wgUser;
global $wgOut;
$wgOut->setRobotpolicy( 'noindex,nofollow' );
$wgOut->setArticleRelated( false );
$wgOut->addWikiText( $msg );
- $wgOut->returnToMain();
+ $wgOut->returnToMain( $auto );
}
/** */