From ca32f08966f1b51fcb19460f0996bb0c4048e6fe Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 3 Dec 2011 13:29:22 +0100 Subject: Update to MediaWiki 1.18.0 * also update ArchLinux skin to chagnes in MonoBook * Use only css to hide our menu bar when printing --- includes/filerepo/Image.php | 80 --------------------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 includes/filerepo/Image.php (limited to 'includes/filerepo/Image.php') diff --git a/includes/filerepo/Image.php b/includes/filerepo/Image.php deleted file mode 100644 index 59a07ef9..00000000 --- a/includes/filerepo/Image.php +++ /dev/null @@ -1,80 +0,0 @@ -getLocalRepo(); - parent::__construct( $title, $repo ); - } - - /** - * Wrapper for wfFindFile(), for backwards-compatibility only - * Do not use in core code. - * @deprecated - */ - static function newFromTitle( $title, $repo, $time = null ) { - wfDeprecated( __METHOD__ ); - $img = wfFindFile( $title, array( 'time' => $time ) ); - if ( !$img ) { - $img = wfLocalFile( $title ); - } - return $img; - } - - /** - * Wrapper for wfFindFile(), for backwards-compatibility only. - * Do not use in core code. - * - * @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 - */ - static function newFromName( $name ) { - wfDeprecated( __METHOD__ ); - $title = Title::makeTitleSafe( NS_FILE, $name ); - if ( is_object( $title ) ) { - $img = wfFindFile( $title ); - if ( !$img ) { - $img = wfLocalFile( $title ); - } - return $img; - } else { - return null; - } - } - - /** - * Return the URL of an image, provided its name. - * - * Backwards-compatibility for extensions. - * Note that fromSharedDirectory will only use the shared path for files - * that actually exist there now, and will return local paths otherwise. - * - * @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 - */ - static function imageUrl( $name, $fromSharedDirectory = false ) { - wfDeprecated( __METHOD__ ); - $image = null; - if( $fromSharedDirectory ) { - $image = wfFindFile( $name ); - } - if( !$image ) { - $image = wfLocalFile( $name ); - } - return $image->getUrl(); - } -} -- cgit v1.2.3-54-g00ecf