Index: trunk/phase3/includes/User.php |
— | — | @@ -3492,16 +3492,15 @@ |
3493 | 3493 | |
3494 | 3494 | /** |
3495 | 3495 | * Add a newuser log entry for this user |
3496 | | - * @param $creator User who |
3497 | 3496 | * @param $byEmail Boolean: account made by email? |
3498 | 3497 | */ |
3499 | | - public function addNewUserLogEntry( $creator, $byEmail = false ) { |
| 3498 | + public function addNewUserLogEntry( $byEmail = false ) { |
3500 | 3499 | global $wgUser, $wgContLang, $wgNewUserLog; |
3501 | 3500 | if( empty($wgNewUserLog) ) { |
3502 | 3501 | return true; // disabled |
3503 | 3502 | } |
3504 | 3503 | $talk = $wgContLang->getFormattedNsText( NS_TALK ); |
3505 | | - if( $creator != $wgUser ) { |
| 3504 | + if( $this->getName() == $wgUser->getName() ) { |
3506 | 3505 | $action = 'create'; |
3507 | 3506 | $message = ''; |
3508 | 3507 | } else { |
Index: trunk/extensions/OpenID/SpecialOpenIDLogin.body.php |
— | — | @@ -493,7 +493,6 @@ |
494 | 494 | $wgOut->returnToMain( false, $this->returnTo() ); |
495 | 495 | } |
496 | 496 | |
497 | | - # FIXME: this should probably use a Login method |
498 | 497 | function createUser( $openid, $sreg, $name ) { |
499 | 498 | global $wgAuth; |
500 | 499 | |
— | — | @@ -505,7 +504,7 @@ |
506 | 505 | } |
507 | 506 | |
508 | 507 | $user->addToDatabase(); |
509 | | - $user->addNewUserLogEntry( $user ); |
| 508 | + $user->addNewUserLogEntry(); |
510 | 509 | |
511 | 510 | if ( !$user->getId() ) { |
512 | 511 | wfDebug( "OpenID: Error adding new user.\n" ); |