Index: trunk/phase3/includes/filerepo/OldLocalFile.php |
— | — | @@ -89,7 +89,7 @@ |
90 | 90 | } else { |
91 | 91 | krsort( $oldImages ); |
92 | 92 | foreach ( $oldImages as $timestamp => $info ) { |
93 | | - if ( $timestamp <= $this->requestedTime ) { |
| 93 | + if ( $timestamp == $this->requestedTime ) { |
94 | 94 | $found = true; |
95 | 95 | break; |
96 | 96 | } |
— | — | @@ -168,7 +168,7 @@ |
169 | 169 | if ( is_null( $this->requestedTime ) ) { |
170 | 170 | $conds['oi_archive_name'] = $this->archive_name; |
171 | 171 | } else { |
172 | | - $conds[] = 'oi_timestamp <= ' . $dbr->addQuotes( $dbr->timestamp( $this->requestedTime ) ); |
| 172 | + $conds[] = 'oi_timestamp = ' . $dbr->addQuotes( $dbr->timestamp( $this->requestedTime ) ); |
173 | 173 | } |
174 | 174 | $row = $dbr->selectRow( 'oldimage', $this->getCacheFields( 'oi_' ), |
175 | 175 | $conds, __METHOD__, array( 'ORDER BY' => 'oi_timestamp DESC' ) ); |