From: Chad Horohoe Date: Thu, 9 Sep 2010 00:53:50 +0000 (+0000) Subject: (bug 25102) Image.php throws E_STRICT. Yes, this breaks back-compat, but nothing... X-Git-Tag: 1.31.0-rc.0~35083 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=0000bea2f55b1b24a4045087074d208cdcf9b445;p=lhc%2Fweb%2Fwiklou.git (bug 25102) Image.php throws E_STRICT. Yes, this breaks back-compat, but nothing uses this anyway...mark it for removal in 1.18 --- diff --git a/includes/filerepo/Image.php b/includes/filerepo/Image.php index 799421ae6e..59a07ef9a8 100644 --- a/includes/filerepo/Image.php +++ b/includes/filerepo/Image.php @@ -8,7 +8,7 @@ /** * Backwards compatibility class * - * @deprecated + * @deprecated. Will be removed in 1.18! * @ingroup FileRepo */ class Image extends LocalFile { @@ -23,7 +23,7 @@ class Image extends LocalFile { * Do not use in core code. * @deprecated */ - static function newFromTitle( $title, $time = false ) { + static function newFromTitle( $title, $repo, $time = null ) { wfDeprecated( __METHOD__ ); $img = wfFindFile( $title, array( 'time' => $time ) ); if ( !$img ) {