X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Ffilerepo%2FForeignAPIRepo.php;h=4176c8240ee892a588dea9ae2de44567ed6a7c96;hp=645a59bc161e4c62ea9afdc1fefb4db21535bb5c;hb=ce079cf6ad79ca8d3360817f809b219d166f9153;hpb=32628487e17c27f3437d44bd54edb8438e837b82 diff --git a/includes/filerepo/ForeignAPIRepo.php b/includes/filerepo/ForeignAPIRepo.php index 645a59bc16..4176c8240e 100644 --- a/includes/filerepo/ForeignAPIRepo.php +++ b/includes/filerepo/ForeignAPIRepo.php @@ -532,8 +532,8 @@ class ForeignAPIRepo extends FileRepo { $status = $req->execute(); if ( $status->isOK() ) { - $mtime = wfTimestampOrNull( TS_UNIX, $req->getResponseHeader( 'Last-Modified' ) ); - $mtime = $mtime ?: false; + $lmod = $req->getResponseHeader( 'Last-Modified' ); + $mtime = $lmod ? wfTimestamp( TS_UNIX, $lmod ) : false; return $req->getContent(); } else {