r32531 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32530‎ | r32531 | r32532 >
Date:00:32, 28 March 2008
Author:aaron
Status:old
Tags:
Comment:
Timestamp should be matched
Modified paths:
  • /trunk/phase3/includes/filerepo/OldLocalFile.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/OldLocalFile.php
@@ -89,7 +89,7 @@
9090 } else {
9191 krsort( $oldImages );
9292 foreach ( $oldImages as $timestamp => $info ) {
93 - if ( $timestamp <= $this->requestedTime ) {
 93+ if ( $timestamp == $this->requestedTime ) {
9494 $found = true;
9595 break;
9696 }
@@ -168,7 +168,7 @@
169169 if ( is_null( $this->requestedTime ) ) {
170170 $conds['oi_archive_name'] = $this->archive_name;
171171 } else {
172 - $conds[] = 'oi_timestamp <= ' . $dbr->addQuotes( $dbr->timestamp( $this->requestedTime ) );
 172+ $conds[] = 'oi_timestamp = ' . $dbr->addQuotes( $dbr->timestamp( $this->requestedTime ) );
173173 }
174174 $row = $dbr->selectRow( 'oldimage', $this->getCacheFields( 'oi_' ),
175175 $conds, __METHOD__, array( 'ORDER BY' => 'oi_timestamp DESC' ) );

Status & tagging log