X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Ffilerepo%2FOldLocalFile.php;h=4906e795feffd7c9b0a7e74f663cb9097dd2c8e8;hb=dd3136f423599e2a98bb1b3b3c072c226d3f2efb;hp=581bce4680f3b1cb9094de289ece579ab8bb098d;hpb=68c831d431bce94da437f3ae09cab92b0e9ab3c4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/OldLocalFile.php b/includes/filerepo/OldLocalFile.php index 581bce4680..4906e795fe 100644 --- a/includes/filerepo/OldLocalFile.php +++ b/includes/filerepo/OldLocalFile.php @@ -11,7 +11,10 @@ class OldLocalFile extends LocalFile { const CACHE_VERSION = 1; const MAX_CACHE_ROWS = 20; - static function newFromTitle( $title, $repo, $time ) { + static function newFromTitle( $title, $repo, $time = null ) { + # The null default value is only here to avoid an E_STRICT + if( $time === null ) + throw new MWException( __METHOD__.' got null for $time parameter' ); return new self( $title, $repo, $time, null ); }