Index: trunk/phase3/includes/AjaxFunctions.php |
— | — | @@ -84,22 +84,6 @@ |
85 | 85 | |
86 | 86 | /** |
87 | 87 | * Called in some places (currently just extensions) |
88 | | - * to get the thumbnail URL for a given file at a given resolution. |
89 | | - */ |
90 | | -function wfAjaxGetThumbnailUrl( $file, $width, $height ) { |
91 | | - $file = wfFindFile( $file ); |
92 | | - |
93 | | - if ( !$file || !$file->exists() ) { |
94 | | - return null; |
95 | | - } |
96 | | - |
97 | | - $url = $file->getThumbnail( $width, $height )->url; |
98 | | - |
99 | | - return $url; |
100 | | -} |
101 | | - |
102 | | -/** |
103 | | - * Called in some places (currently just extensions) |
104 | 88 | * to get the URL for a given file. |
105 | 89 | */ |
106 | 90 | function wfAjaxGetFileUrl( $file ) { |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -4811,7 +4811,7 @@ |
4812 | 4812 | * List of Ajax-callable functions. |
4813 | 4813 | * Extensions acting as Ajax callbacks must register here |
4814 | 4814 | */ |
4815 | | -$wgAjaxExportList = array( 'wfAjaxGetThumbnailUrl', 'wfAjaxGetFileUrl' ); |
| 4815 | +$wgAjaxExportList = array( 'wfAjaxGetFileUrl' ); |
4816 | 4816 | |
4817 | 4817 | /** |
4818 | 4818 | * Enable watching/unwatching pages using AJAX. |