r76179 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76178‎ | r76179 | r76180 >
Date:01:34, 6 November 2010
Author:hartman
Status:ok
Tags:
Comment:
Use wfDeprecated() in the deprecated function getThumbnail() and getLinksTo() of File.php
Modified paths:
  • /trunk/phase3/includes/filerepo/File.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/File.php
@@ -528,6 +528,7 @@
529529 * @deprecated use transform()
530530 */
531531 public function getThumbnail( $width, $height=-1, $render = true ) {
 532+ wfDeprecated( __METHOD__ );
532533 $params = array( 'width' => $width );
533534 if ( $height != -1 ) {
534535 $params['height'] = $height;
@@ -886,6 +887,7 @@
887888 * @deprecated Use HTMLCacheUpdate, this function uses too much memory
888889 */
889890 function getLinksTo( $options = array() ) {
 891+ wfDeprecated( __METHOD__ );
890892 wfProfileIn( __METHOD__ );
891893
892894 // Note: use local DB not repo DB, we want to know local links

Follow-up revisions

RevisionCommit summaryAuthorDate
r81204Fixup usage of $file->getThumbnail as it's deprecated...reedy08:06, 30 January 2011

Status & tagging log