diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-06-22 11:28:20 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-06-22 11:28:20 +0200 |
commit | 9db190c7e736ec8d063187d4241b59feaf7dc2d1 (patch) | |
tree | 46d1a0dee7febef5c2d57a9f7b972be16a163b3d /includes/filerepo/Image.php | |
parent | 78677c7bbdcc9739f6c10c75935898a20e1acd9e (diff) |
update to MediaWiki 1.17.0
Diffstat (limited to 'includes/filerepo/Image.php')
-rw-r--r-- | includes/filerepo/Image.php | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/includes/filerepo/Image.php b/includes/filerepo/Image.php index 08ce219a..59a07ef9 100644 --- a/includes/filerepo/Image.php +++ b/includes/filerepo/Image.php @@ -1,8 +1,14 @@ <?php +/** + * Backward compatibility code for MW < 1.11 + * + * @file + */ /** * Backwards compatibility class - * @deprecated + * + * @deprecated. Will be removed in 1.18! * @ingroup FileRepo */ class Image extends LocalFile { @@ -17,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 ) { @@ -30,7 +36,7 @@ class Image extends LocalFile { * Wrapper for wfFindFile(), for backwards-compatibility only. * Do not use in core code. * - * @param string $name name of the image, used to create a title object using Title::makeTitleSafe + * @param $name String: name of the image, used to create a title object using Title::makeTitleSafe * @return image object or null if invalid title * @deprecated */ @@ -55,8 +61,8 @@ class Image extends LocalFile { * Note that fromSharedDirectory will only use the shared path for files * that actually exist there now, and will return local paths otherwise. * - * @param string $name Name of the image, without the leading "Image:" - * @param boolean $fromSharedDirectory Should this be in $wgSharedUploadPath? + * @param $name String: name of the image, without the leading "Image:" + * @param $fromSharedDirectory Boolean: Should this be in $wgSharedUploadPath? * @return string URL of $name image * @deprecated */ |