From: Aaron Schulz Date: Mon, 4 Feb 2008 08:18:55 +0000 (+0000) Subject: A file should be at $time X-Git-Tag: 1.31.0-rc.0~49628 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=89c41b1b63718299be82797073e90225078a35c7;p=lhc%2Fweb%2Fwiklou.git A file should be at $time --- 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