Index: trunk/phase3/includes/filerepo/OldLocalFile.php |
— | — | @@ -156,10 +156,10 @@ |
157 | 157 | wfProfileIn( __METHOD__ );
|
158 | 158 | $dbr = $this->repo->getSlaveDB();
|
159 | 159 | $conds = array( 'oi_name' => $this->getName() );
|
160 | | - if ( is_null( $this->requestedTimestamp ) ) {
|
| 160 | + if ( is_null( $this->requestedTime ) ) {
|
161 | 161 | $conds['oi_archive_name'] = $this->archive_name;
|
162 | 162 | } else {
|
163 | | - $conds[] = 'oi_timestamp <= ' . $dbr->addQuotes( $this->requestedTimestamp );
|
| 163 | + $conds[] = 'oi_timestamp <= ' . $dbr->addQuotes( $this->requestedTime );
|
164 | 164 | }
|
165 | 165 | $row = $dbr->selectRow( 'oldimage', $this->getCacheFields( 'oi_' ),
|
166 | 166 | $conds, __METHOD__, array( 'ORDER BY' => 'oi_timestamp DESC' ) );
|