A file should be at $time
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 4 Feb 2008 08:18:55 +0000 (08:18 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 4 Feb 2008 08:18:55 +0000 (08:18 +0000)
includes/GlobalFunctions.php
includes/filerepo/FileRepo.php

index 3b19ae4..1c6fd35 100644 (file)
@@ -2269,7 +2269,7 @@ function &wfGetDB( $db = DB_LAST, $groups = array() ) {
  * @param mixed $title Title object or string. May be interwiki.
  * @param mixed $time Requested time for an archived image, or false for the 
  *                    current version. An image object will be returned which 
- *                    existed at or before the specified time.
+ *                    existed at the specified time.
  * @return File, or false if the file does not exist
  */
 function wfFindFile( $title, $time = false ) {
index c010b3f..ee7691a 100644 (file)
@@ -82,7 +82,7 @@ abstract class FileRepo {
                if ( !$img ) {
                        return false;
                }
-               if ( $img->exists() && ( !$time || $img->getTimestamp() <= $time ) ) {
+               if ( $img->exists() && ( !$time || $img->getTimestamp() == $time ) ) {
                        return $img;
                }
                # Now try an old version of the file