(bug 25102) Image.php throws E_STRICT. Yes, this breaks back-compat, but nothing...
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 9 Sep 2010 00:53:50 +0000 (00:53 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 9 Sep 2010 00:53:50 +0000 (00:53 +0000)
includes/filerepo/Image.php

index 799421a..59a07ef 100644 (file)
@@ -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 ) {