r26489 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26488‎ | r26489 | r26490 >
Date:22:20, 7 October 2007
Author:greg
Status:old
Tags:
Comment:
Use database timestamp() function for things passed directly to db.
Modified paths:
  • /trunk/extensions/ConfirmAccount/ConfirmAccount_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ConfirmAccount/ConfirmAccount_body.php
@@ -193,7 +193,7 @@
194194 'acr_name' => $u->mName,
195195 'acr_email' => $u->mEmail,
196196 'acr_real_name' => $u->mRealName,
197 - 'acr_registration' => wfTimestampNow(),
 197+ 'acr_registration' => $dbw->timestamp(),
198198 'acr_bio' => $this->mBio,
199199 'acr_notes' => $this->mNotes,
200200 'acr_urls' => $this->mUrls,
@@ -297,7 +297,7 @@
298298 function confirmEmail( $name ) {
299299 $dbw = wfGetDB( DB_MASTER );
300300 $dbw->update( 'account_requests',
301 - array( 'acr_email_authenticated' => wfTimestampNow() ),
 301+ array( 'acr_email_authenticated' => $dbw->timestamp() ),
302302 array( 'acr_name' => $name ),
303303 __METHOD__ );
304304 }
@@ -435,7 +435,7 @@
436436 global $wgUser;
437437 # Request can later be recovered
438438 $dbw->update( 'account_requests',
439 - array( 'acr_rejected' => wfTimestampNow(),
 439+ array( 'acr_rejected' => $dbw->timestamp(),
440440 'acr_user' => $wgUser->getID(),
441441 'acr_deleted' => 1 ),
442442 array( 'acr_id' => $this->acrID, 'acr_deleted' => 0 ),

Status & tagging log