r22758 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22757‎ | r22758 | r22759 >
Date:13:30, 5 June 2007
Author:robchurch
Status:old
Tags:
Comment:
(bug 10055) Populate email address and real name properties of User objects passed to the 'AbortNewAccount' hook
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialUserlogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialUserlogin.php
@@ -265,6 +265,11 @@
266266 $this->mainLoginForm( wfMsg( 'passwordtooshort', $wgMinimalPasswordLength ) );
267267 return false;
268268 }
 269+
 270+ # Set some additional data so the AbortNewAccount hook can be
 271+ # used for more than just username validation
 272+ $u->setEmail( $this->mEmail );
 273+ $u->setRealName( $this->mRealName );
269274
270275 $abortError = '';
271276 if( !wfRunHooks( 'AbortNewAccount', array( $u, &$abortError ) ) ) {
Index: trunk/phase3/RELEASE-NOTES
@@ -59,6 +59,8 @@
6060 see docs/hooks.txt for details
6161 * (bug 9769) Provide "watch this page" toggle on protection form
6262 * (bug 9886) Provide clear example "stub link" in Special:Preferences
 63+* (bug 10055) Populate email address and real name properties of User objects
 64+ passed to the 'AbortNewAccount' hook
6365
6466 == Bugfixes since 1.10 ==
6567

Follow-up revisions

RevisionCommit summaryAuthorDate
r22791Merged revisions 22747-22790 via svnmerge from...david09:21, 6 June 2007

Status & tagging log