Index: trunk/phase3/includes/User.php |
— | — | @@ -2880,6 +2880,7 @@ |
2881 | 2881 | 'user_token' => $user->mToken, |
2882 | 2882 | 'user_registration' => $dbw->timestamp( $user->mRegistration ), |
2883 | 2883 | 'user_editcount' => 0, |
| 2884 | + 'user_touched' => $dbw->timestamp( self::newTouchedTimestamp() ), |
2884 | 2885 | ); |
2885 | 2886 | foreach ( $params as $name => $value ) { |
2886 | 2887 | $fields["user_$name"] = $value; |
— | — | @@ -2898,6 +2899,9 @@ |
2899 | 2900 | */ |
2900 | 2901 | public function addToDatabase() { |
2901 | 2902 | $this->load(); |
| 2903 | + |
| 2904 | + $this->mTouched = self::newTouchedTimestamp(); |
| 2905 | + |
2902 | 2906 | $dbw = wfGetDB( DB_MASTER ); |
2903 | 2907 | $seqVal = $dbw->nextSequenceValue( 'user_user_id_seq' ); |
2904 | 2908 | $dbw->insert( 'user', |
— | — | @@ -2913,6 +2917,7 @@ |
2914 | 2918 | 'user_token' => $this->mToken, |
2915 | 2919 | 'user_registration' => $dbw->timestamp( $this->mRegistration ), |
2916 | 2920 | 'user_editcount' => 0, |
| 2921 | + 'user_touched' => $dbw->timestamp( $this->mTouched ), |
2917 | 2922 | ), __METHOD__ |
2918 | 2923 | ); |
2919 | 2924 | $this->mId = $dbw->insertId(); |