From: Chad Horohoe Date: Wed, 16 Jun 2010 17:24:32 +0000 (+0000) Subject: Kill off another AjaxFunction. The only thing that ever used this was Configure,... X-Git-Tag: 1.31.0-rc.0~36494 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=7dc944ae0f90e6e7ef55f83eccffa4e5c299cab7;p=lhc%2Fweb%2Fwiklou.git Kill off another AjaxFunction. The only thing that ever used this was Configure, and it hasn't used it in a long time (r44266) --- 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.