Index: trunk/extensions/CentralAuth/CentralAuthHooks.php |
— | — | @@ -415,17 +415,18 @@ |
416 | 416 | wfDebug( __METHOD__.": creating new user\n" ); |
417 | 417 | $user->loadDefaults( $userName ); |
418 | 418 | $user->addToDatabase(); |
| 419 | + $user->addNewUserLogEntryAutoCreate(); |
419 | 420 | |
420 | 421 | $wgAuth->initUser( $user, true ); |
421 | 422 | $wgAuth->updateUser( $user ); |
422 | 423 | |
| 424 | + # Notify hooks (e.g. Newuserlog) |
| 425 | + wfRunHooks( 'AuthPluginAutoCreate', array( $user ) ); |
| 426 | + |
423 | 427 | # Update user count |
424 | 428 | $ssUpdate = new SiteStatsUpdate( 0, 0, 0, 0, 1 ); |
425 | 429 | $ssUpdate->doUpdate(); |
426 | | - |
427 | | - # Notify hooks (e.g. Newuserlog) |
428 | | - wfRunHooks( 'AuthPluginAutoCreate', array( $user ) ); |
429 | | - $user->addNewUserLogEntryAutoCreate(); |
| 430 | + |
430 | 431 | return true; |
431 | 432 | } |
432 | 433 | |