Index: trunk/phase3/includes/filerepo/Image.php |
— | — | @@ -6,6 +6,7 @@ |
7 | 7 | */ |
8 | 8 | class Image extends LocalFile { |
9 | 9 | function __construct( $title ) { |
| 10 | + wfDeprecated( __METHOD__ ); |
10 | 11 | $repo = RepoGroup::singleton()->getLocalRepo(); |
11 | 12 | parent::__construct( $title, $repo ); |
12 | 13 | } |
— | — | @@ -16,6 +17,7 @@ |
17 | 18 | * @deprecated |
18 | 19 | */ |
19 | 20 | static function newFromTitle( $title, $time = false ) { |
| 21 | + wfDeprecated( __METHOD__ ); |
20 | 22 | $img = wfFindFile( $title, $time ); |
21 | 23 | if ( !$img ) { |
22 | 24 | $img = wfLocalFile( $title ); |
— | — | @@ -32,6 +34,7 @@ |
33 | 35 | * @deprecated |
34 | 36 | */ |
35 | 37 | static function newFromName( $name ) { |
| 38 | + wfDeprecated( __METHOD__ ); |
36 | 39 | $title = Title::makeTitleSafe( NS_IMAGE, $name ); |
37 | 40 | if ( is_object( $title ) ) { |
38 | 41 | $img = wfFindFile( $title ); |
— | — | @@ -57,6 +60,7 @@ |
58 | 61 | * @deprecated |
59 | 62 | */ |
60 | 63 | static function imageUrl( $name, $fromSharedDirectory = false ) { |
| 64 | + wfDeprecated( __METHOD__ ); |
61 | 65 | $image = null; |
62 | 66 | if( $fromSharedDirectory ) { |
63 | 67 | $image = wfFindFile( $name ); |