Index: trunk/phase3/includes/AjaxFunctions.php |
— | — | @@ -83,19 +83,3 @@ |
84 | 84 | |
85 | 85 | return ''; |
86 | 86 | } |
87 | | - |
88 | | -/** |
89 | | - * Called in some places (currently just extensions) |
90 | | - * to get the URL for a given file. |
91 | | - */ |
92 | | -function wfAjaxGetFileUrl( $file ) { |
93 | | - $file = wfFindFile( $file ); |
94 | | - |
95 | | - if ( !$file || !$file->exists() ) { |
96 | | - return null; |
97 | | - } |
98 | | - |
99 | | - $url = $file->getUrl(); |
100 | | - |
101 | | - return $url; |
102 | | -} |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -5185,7 +5185,7 @@ |
5186 | 5186 | * List of Ajax-callable functions. |
5187 | 5187 | * Extensions acting as Ajax callbacks must register here |
5188 | 5188 | */ |
5189 | | -$wgAjaxExportList = array( 'wfAjaxGetFileUrl' ); |
| 5189 | +$wgAjaxExportList = array(); |
5190 | 5190 | |
5191 | 5191 | /** |
5192 | 5192 | * Enable watching/unwatching pages using AJAX. |