*Use $this->requestedTime, $this->requestedTimestamp was floating around in some...
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 31 May 2007 16:49:33 +0000 (16:49 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 31 May 2007 16:49:33 +0000 (16:49 +0000)
includes/filerepo/OldLocalFile.php

index 1a802a0..846f728 100644 (file)
@@ -156,10 +156,10 @@ class OldLocalFile extends LocalFile {
                wfProfileIn( __METHOD__ );\r
                $dbr = $this->repo->getSlaveDB();\r
                $conds = array( 'oi_name' => $this->getName() );\r
-               if ( is_null( $this->requestedTimestamp ) ) {\r
+               if ( is_null( $this->requestedTime ) ) {\r
                        $conds['oi_archive_name'] = $this->archive_name;\r
                } else {\r
-                       $conds[] = 'oi_timestamp <= ' . $dbr->addQuotes( $this->requestedTimestamp );\r
+                       $conds[] = 'oi_timestamp <= ' . $dbr->addQuotes( $this->requestedTime );\r
                }\r
                $row = $dbr->selectRow( 'oldimage', $this->getCacheFields( 'oi_' ),\r
                        $conds, __METHOD__, array( 'ORDER BY' => 'oi_timestamp DESC' ) );\r