Kill off another AjaxFunction. The only thing that ever used this was Configure,...
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 16 Jun 2010 17:24:32 +0000 (17:24 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 16 Jun 2010 17:24:32 +0000 (17:24 +0000)
includes/AjaxFunctions.php
includes/DefaultSettings.php

index 6e1b6be..04572b4 100644 (file)
@@ -82,22 +82,6 @@ function code2utf( $num ) {
        return '';
 }
 
-/**
- * Called in some places (currently just extensions)
- * to get the thumbnail URL for a given file at a given resolution.
- */
-function wfAjaxGetThumbnailUrl( $file, $width, $height ) {
-       $file = wfFindFile( $file );
-
-       if ( !$file || !$file->exists() ) {
-               return null;
-       }
-
-       $url = $file->getThumbnail( $width, $height )->url;
-
-       return $url;
-}
-
 /**
  * Called in some places (currently just extensions)
  * to get the URL for a given file.
index 58b3d8c..b326067 100644 (file)
@@ -4811,7 +4811,7 @@ $wgUseAjax = true;
  * List of Ajax-callable functions.
  * Extensions acting as Ajax callbacks must register here
  */
-$wgAjaxExportList = array( 'wfAjaxGetThumbnailUrl', 'wfAjaxGetFileUrl' );
+$wgAjaxExportList = array( 'wfAjaxGetFileUrl' );
 
 /**
  * Enable watching/unwatching pages using AJAX.