r41336 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41335‎ | r41336 | r41337 >
Date:04:08, 28 September 2008
Author:aaron
Status:old
Tags:
Comment:
Opps, use wfTimestamp(), need some sleep :)
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -326,8 +326,7 @@
327327 if ( $this->mTitle->isDeleted() ) {
328328 $this->lastDelete = $this->getLastDelete();
329329 if ( $this->lastDelete ) {
330 - $dbr = wfGetDB( DB_SLAVE );
331 - $deletetime = $dbr->timestamp( $this->lastDelete->log_timestamp );
 330+ $deletetime = wfTimestamp( TS_MW, $this->lastDelete->log_timestamp );
332331 if ( ($deletetime - $this->starttime) > 0 ) {
333332 $this->deletedSinceEdit = true;
334333 }