r32859 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32858‎ | r32859 | r32860 >
Date:17:30, 6 April 2008
Author:ialex
Status:old
Tags:
Comment:
Per request of Nikerabbit: add wfDeprecated() to all methods of Image class.
Modified paths:
  • /trunk/phase3/includes/filerepo/Image.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/Image.php
@@ -6,6 +6,7 @@
77 */
88 class Image extends LocalFile {
99 function __construct( $title ) {
 10+ wfDeprecated( __METHOD__ );
1011 $repo = RepoGroup::singleton()->getLocalRepo();
1112 parent::__construct( $title, $repo );
1213 }
@@ -16,6 +17,7 @@
1718 * @deprecated
1819 */
1920 static function newFromTitle( $title, $time = false ) {
 21+ wfDeprecated( __METHOD__ );
2022 $img = wfFindFile( $title, $time );
2123 if ( !$img ) {
2224 $img = wfLocalFile( $title );
@@ -32,6 +34,7 @@
3335 * @deprecated
3436 */
3537 static function newFromName( $name ) {
 38+ wfDeprecated( __METHOD__ );
3639 $title = Title::makeTitleSafe( NS_IMAGE, $name );
3740 if ( is_object( $title ) ) {
3841 $img = wfFindFile( $title );
@@ -57,6 +60,7 @@
5861 * @deprecated
5962 */
6063 static function imageUrl( $name, $fromSharedDirectory = false ) {
 64+ wfDeprecated( __METHOD__ );
6165 $image = null;
6266 if( $fromSharedDirectory ) {
6367 $image = wfFindFile( $name );

Status & tagging log