From: Alexandre Emsenhuber Date: Tue, 24 Feb 2009 11:52:40 +0000 (+0000) Subject: Correct fix for r47709: the second parameter to wfTimestamp() was supposed to be... X-Git-Tag: 1.31.0-rc.0~42705 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=a1db5ada0993977dc1a805432605364d69960225;p=lhc%2Fweb%2Fwiklou.git Correct fix for r47709: the second parameter to wfTimestamp() was supposed to be $row->ar_timestamp :) --- diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index b96739be92..1341f39628 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -227,6 +227,7 @@ class RevisionDeleteForm { 'ar_timestamp' => $where ), __METHOD__ ); while( $row = $dbr->fetchObject( $result ) ) { + $timestamp = wfTimestamp( TS_MW, $row->ar_timestamp ); $revObjs[$timestamp] = new Revision( array( 'page' => $this->page->getArticleId(), 'id' => $row->ar_rev_id, @@ -234,7 +235,7 @@ class RevisionDeleteForm { 'comment' => $row->ar_comment, 'user' => $row->ar_user, 'user_text' => $row->ar_user_text, - 'timestamp' => wfTimestamp( TS_MW, $timestamp ), + 'timestamp' => $timestamp, 'minor_edit' => $row->ar_minor_edit, 'text_id' => $row->ar_text_id, 'deleted' => $row->ar_deleted, @@ -889,6 +890,7 @@ class RevisionDeleter { 'ar_timestamp' => $where ), __METHOD__ ); while( $row = $this->dbw->fetchObject( $result ) ) { + $timestamp = wfTimestamp( TS_MW, $row->ar_timestamp ); $revObjs[$timestamp] = new Revision( array( 'page' => $title->getArticleId(), 'id' => $row->ar_rev_id, @@ -896,7 +898,7 @@ class RevisionDeleter { 'comment' => $row->ar_comment, 'user' => $row->ar_user, 'user_text' => $row->ar_user_text, - 'timestamp' => wfTimestamp( TS_MW, $row->ar_timestamp ), + 'timestamp' => $timestamp, 'minor_edit' => $row->ar_minor_edit, 'text_id' => $row->ar_text_id, 'deleted' => $row->ar_deleted,