From a1db5ada0993977dc1a805432605364d69960225 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 24 Feb 2009 11:52:40 +0000 Subject: [PATCH] Correct fix for r47709: the second parameter to wfTimestamp() was supposed to be $row->ar_timestamp :) --- includes/specials/SpecialRevisiondelete.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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, -- 2.20.1