From: Brion Vibber Date: Fri, 22 Dec 2006 23:46:08 +0000 (+0000) Subject: * Initialize user_editcount to 0 instead of NULL for newly created accounts X-Git-Tag: 1.31.0-rc.0~54806 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=eb9fc474541407ea8f591851137f9965c6f50fdc;p=lhc%2Fweb%2Fwiklou.git * Initialize user_editcount to 0 instead of NULL for newly created accounts --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 06b965c405..68a3ed039a 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -380,6 +380,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 532) Tweaked alt text for some interface messages * (bug 8231) Gave useful alt text to the main on image pages * (bug 371) Remove alt text for "Enlarge" icon on thumbnails +* Initialize user_editcount to 0 instead of NULL for newly created accounts + == Languages updated == diff --git a/includes/User.php b/includes/User.php index 1febe511d4..752969ccee 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1933,6 +1933,7 @@ class User { 'user_options' => $user->encodeOptions(), 'user_token' => $user->mToken, 'user_registration' => $dbw->timestamp( $user->mRegistration ), + 'user_editcount' => 0, ); foreach ( $params as $name => $value ) { $fields["user_$name"] = $value; @@ -1966,6 +1967,7 @@ class User { 'user_options' => $this->encodeOptions(), 'user_token' => $this->mToken, 'user_registration' => $dbw->timestamp( $this->mRegistration ), + 'user_editcount' => 0, ), __METHOD__ ); $this->mId = $dbw->insertId();