r41335 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41334‎ | r41335 | r41336 >
Date:04:05, 28 September 2008
Author:aaron
Status:old
Tags:
Comment:
Fix time check for deletedSinceEdit for PG (bug 15751)
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

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