From: Aaron Schulz Date: Sun, 28 Sep 2008 04:05:01 +0000 (+0000) Subject: Fix time check for deletedSinceEdit for PG (bug 15751) X-Git-Tag: 1.31.0-rc.0~45055 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=commitdiff_plain;h=f4db4318949598f23168676942cc81439d0b0651;p=lhc%2Fweb%2Fwiklou.git Fix time check for deletedSinceEdit for PG (bug 15751) --- diff --git a/includes/EditPage.php b/includes/EditPage.php index dcee382458..93dcf60c4e 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -326,7 +326,8 @@ class EditPage { if ( $this->mTitle->isDeleted() ) { $this->lastDelete = $this->getLastDelete(); if ( $this->lastDelete ) { - $deletetime = $this->lastDelete->log_timestamp; + $dbr = wfGetDB( DB_SLAVE ); + $deletetime = $dbr->timestamp( $this->lastDelete->log_timestamp ); if ( ($deletetime - $this->starttime) > 0 ) { $this->deletedSinceEdit = true; }