registrations as well as self-registrations.
* (bug 5536) Use content language for editing help link
* Improvements to German localisation files
* (bug 5570) Problems using <special page>/parameter link form for long titles
+* (bug 3884) Add $user parameter to AddNewUser hook, call it for by-email
+ registrations as well as self-registrations.
+
== Compatibility ==
$message: out parameter: error message to display on abort
'AddNewAccount': after a user account is created
-null: This hook passes null as an argument
+$user: the User object that was created. (Parameter added in 1.7)
'ArticleDelete': before an article is deleted
$article: the article (object) being deleted
$u->saveSettings();
$result = $this->mailPasswordInternal($u);
+ wfRunHooks( 'AddNewAccount', array( $u ) );
+
$wgOut->setPageTitle( wfMsg( 'accmailtitle' ) );
$wgOut->setRobotpolicy( 'noindex,nofollow' );
$wgOut->setArticleRelated( false );
$wgUser->sendConfirmationMail();
}
- wfRunHooks( 'AddNewAccount' );
+ wfRunHooks( 'AddNewAccount', array( $u ) );
if( $this->hasSessionCookie() ) {
return $this->successfulLogin( wfMsg( 'welcomecreation', $wgUser->getName() ), false );