From: Aaron Schulz Date: Mon, 23 Feb 2009 23:05:40 +0000 (+0000) Subject: Fix timestamp bug from r47709 X-Git-Tag: 1.31.0-rc.0~42709 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=80295e1a33d261fe5911c1091b3b4ddb480c8f29;p=lhc%2Fweb%2Fwiklou.git Fix timestamp bug from r47709 --- diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index 211906d3d5..b96739be92 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -227,19 +227,18 @@ class RevisionDeleteForm { 'ar_timestamp' => $where ), __METHOD__ ); while( $row = $dbr->fetchObject( $result ) ) { - $timestamp = wfTimestamp( TS_MW, $timestamp ); $revObjs[$timestamp] = new Revision( array( - 'page' => $this->page->getArticleId(), - 'id' => $row->ar_rev_id, - 'text' => $row->ar_text_id, - 'comment' => $row->ar_comment, - 'user' => $row->ar_user, - 'user_text' => $row->ar_user_text, - 'timestamp' => $timestamp, - 'minor_edit' => $row->ar_minor_edit, - 'text_id' => $row->ar_text_id, - 'deleted' => $row->ar_deleted, - 'len' => $row->ar_len) ); + 'page' => $this->page->getArticleId(), + 'id' => $row->ar_rev_id, + 'text' => $row->ar_text_id, + 'comment' => $row->ar_comment, + 'user' => $row->ar_user, + 'user_text' => $row->ar_user_text, + 'timestamp' => wfTimestamp( TS_MW, $timestamp ), + 'minor_edit' => $row->ar_minor_edit, + 'text_id' => $row->ar_text_id, + 'deleted' => $row->ar_deleted, + 'len' => $row->ar_len) ); } foreach( $this->archrevs as $timestamp ) { if( !isset($revObjs[$timestamp]) ) { @@ -890,7 +889,6 @@ 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, @@ -898,7 +896,7 @@ class RevisionDeleter { 'comment' => $row->ar_comment, 'user' => $row->ar_user, 'user_text' => $row->ar_user_text, - 'timestamp' => $timestamp, + 'timestamp' => wfTimestamp( TS_MW, $row->ar_timestamp ), 'minor_edit' => $row->ar_minor_edit, 'text_id' => $row->ar_text_id, 'deleted' => $row->ar_deleted,