From 7dc944ae0f90e6e7ef55f83eccffa4e5c299cab7 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 16 Jun 2010 17:24:32 +0000 Subject: [PATCH] Kill off another AjaxFunction. The only thing that ever used this was Configure, and it hasn't used it in a long time (r44266) --- includes/AjaxFunctions.php | 16 ---------------- includes/DefaultSettings.php | 2 +- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/includes/AjaxFunctions.php b/includes/AjaxFunctions.php index 6e1b6be3ec..04572b4f01 100644 --- a/includes/AjaxFunctions.php +++ b/includes/AjaxFunctions.php @@ -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. diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 58b3d8c49d..b326067579 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -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. -- 2.20.1