From: Derk-Jan Hartman Date: Sat, 6 Nov 2010 01:34:47 +0000 (+0000) Subject: Use wfDeprecated() in the deprecated function getThumbnail() and getLinksTo() of... X-Git-Tag: 1.31.0-rc.0~34048 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=81644d5db093656ed61afa03f0daeb03e02fdd17;p=lhc%2Fweb%2Fwiklou.git Use wfDeprecated() in the deprecated function getThumbnail() and getLinksTo() of File.php --- diff --git a/includes/filerepo/File.php b/includes/filerepo/File.php index 9e582ad6f1..0ba402f091 100644 --- a/includes/filerepo/File.php +++ b/includes/filerepo/File.php @@ -528,6 +528,7 @@ abstract class File { * @deprecated use transform() */ public function getThumbnail( $width, $height=-1, $render = true ) { + wfDeprecated( __METHOD__ ); $params = array( 'width' => $width ); if ( $height != -1 ) { $params['height'] = $height; @@ -886,6 +887,7 @@ abstract class File { * @deprecated Use HTMLCacheUpdate, this function uses too much memory */ function getLinksTo( $options = array() ) { + wfDeprecated( __METHOD__ ); wfProfileIn( __METHOD__ ); // Note: use local DB not repo DB, we want to know local links