Fix timestamp bug from r47709
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 23 Feb 2009 23:05:40 +0000 (23:05 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 23 Feb 2009 23:05:40 +0000 (23:05 +0000)
includes/specials/SpecialRevisiondelete.php

index 211906d..b96739b 100644 (file)
@@ -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,