Index: trunk/phase3/includes/User.php |
— | — | @@ -3913,7 +3913,7 @@ |
3914 | 3914 | * @param $byEmail Boolean: account made by email? |
3915 | 3915 | * @param $reason String: user supplied reason |
3916 | 3916 | * |
3917 | | - * @return true |
| 3917 | + * @return int|bool True if not $wgNewUserLog; otherwise ID of log item or 0 on failure |
3918 | 3918 | */ |
3919 | 3919 | public function addNewUserLogEntry( $byEmail = false, $reason = '' ) { |
3920 | 3920 | global $wgUser, $wgContLang, $wgNewUserLog; |
— | — | @@ -3935,13 +3935,12 @@ |
3936 | 3936 | } |
3937 | 3937 | } |
3938 | 3938 | $log = new LogPage( 'newusers' ); |
3939 | | - $log->addEntry( |
| 3939 | + return (int)$log->addEntry( |
3940 | 3940 | $action, |
3941 | 3941 | $this->getUserPage(), |
3942 | 3942 | $reason, |
3943 | 3943 | array( $this->getId() ) |
3944 | 3944 | ); |
3945 | | - return true; |
3946 | 3945 | } |
3947 | 3946 | |
3948 | 3947 | /** |