From 9ae47b8f896802091d86625389236955adab6213 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 6 Apr 2008 17:30:04 +0000 Subject: [PATCH] Per request of Nikerabbit: add wfDeprecated() to all methods of Image class. --- includes/filerepo/Image.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/filerepo/Image.php b/includes/filerepo/Image.php index 9ab750c1b4..1a5c08a2da 100644 --- a/includes/filerepo/Image.php +++ b/includes/filerepo/Image.php @@ -6,6 +6,7 @@ */ class Image extends LocalFile { function __construct( $title ) { + wfDeprecated( __METHOD__ ); $repo = RepoGroup::singleton()->getLocalRepo(); parent::__construct( $title, $repo ); } @@ -16,6 +17,7 @@ class Image extends LocalFile { * @deprecated */ static function newFromTitle( $title, $time = false ) { + wfDeprecated( __METHOD__ ); $img = wfFindFile( $title, $time ); if ( !$img ) { $img = wfLocalFile( $title ); @@ -32,6 +34,7 @@ class Image extends LocalFile { * @deprecated */ static function newFromName( $name ) { + wfDeprecated( __METHOD__ ); $title = Title::makeTitleSafe( NS_IMAGE, $name ); if ( is_object( $title ) ) { $img = wfFindFile( $title ); @@ -57,6 +60,7 @@ class Image extends LocalFile { * @deprecated */ static function imageUrl( $name, $fromSharedDirectory = false ) { + wfDeprecated( __METHOD__ ); $image = null; if( $fromSharedDirectory ) { $image = wfFindFile( $name ); -- 2.20.1