From 89c41b1b63718299be82797073e90225078a35c7 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 4 Feb 2008 08:18:55 +0000 Subject: [PATCH] A file should be at $time --- includes/GlobalFunctions.php | 2 +- includes/filerepo/FileRepo.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 3b19ae4442..1c6fd3564d 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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 ) { diff --git a/includes/filerepo/FileRepo.php b/includes/filerepo/FileRepo.php index c010b3fa51..ee7691a6e0 100644 --- a/includes/filerepo/FileRepo.php +++ b/includes/filerepo/FileRepo.php @@ -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 -- 2.20.1