From: Russ Nelson Date: Tue, 3 May 2011 19:55:49 +0000 (+0000) Subject: Only one extension was using getThumbnail X-Git-Tag: 1.31.0-rc.0~30430 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=6656b87e5042fbf97542808d0e94d2bd82d4e8c4;p=lhc%2Fweb%2Fwiklou.git Only one extension was using getThumbnail --- diff --git a/includes/filerepo/File.php b/includes/filerepo/File.php index c3d90cab1d..8c7993962d 100644 --- a/includes/filerepo/File.php +++ b/includes/filerepo/File.php @@ -558,30 +558,6 @@ abstract class File { return $thumb->getUrl(); } - /** - * As createThumb, but returns a ThumbnailImage object. This can - * provide access to the actual file, the real size of the thumb, - * and can produce a convenient \ tag for you. - * - * For non-image formats, this may return a filetype-specific icon. - * - * @param $width Integer: maximum width of the generated thumbnail - * @param $height Integer: maximum height of the image (optional) - * @param $render Integer: Deprecated - * - * @return ThumbnailImage or null on failure - * - * @deprecated use transform() - */ - public function getThumbnail( $width, $height=-1, $render = true ) { - wfDeprecated( __METHOD__ ); - $params = array( 'width' => $width ); - if ( $height != -1 ) { - $params['height'] = $height; - } - return $this->transform( $params, 0 ); - } - /** * Transform a media file * diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index a24b5c3a77..c32c128557 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -561,7 +561,6 @@ class LocalFile extends File { /** getUnscaledThumb inherited */ /** thumbName inherited */ /** createThumb inherited */ - /** getThumbnail inherited */ /** transform inherited */ /**