From f2d1e62b25c5d5408b7a65a4d1f811e5023707d1 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 31 May 2007 16:49:33 +0000 Subject: [PATCH] *Use $this->requestedTime, $this->requestedTimestamp was floating around in some places, causing image conditions to be borked --- includes/filerepo/OldLocalFile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/filerepo/OldLocalFile.php b/includes/filerepo/OldLocalFile.php index 1a802a0a13..846f728afd 100644 --- a/includes/filerepo/OldLocalFile.php +++ b/includes/filerepo/OldLocalFile.php @@ -156,10 +156,10 @@ class OldLocalFile extends LocalFile { wfProfileIn( __METHOD__ ); $dbr = $this->repo->getSlaveDB(); $conds = array( 'oi_name' => $this->getName() ); - if ( is_null( $this->requestedTimestamp ) ) { + if ( is_null( $this->requestedTime ) ) { $conds['oi_archive_name'] = $this->archive_name; } else { - $conds[] = 'oi_timestamp <= ' . $dbr->addQuotes( $this->requestedTimestamp ); + $conds[] = 'oi_timestamp <= ' . $dbr->addQuotes( $this->requestedTime ); } $row = $dbr->selectRow( 'oldimage', $this->getCacheFields( 'oi_' ), $conds, __METHOD__, array( 'ORDER BY' => 'oi_timestamp DESC' ) ); -- 2.20.1