From e7c48351b1cdf6a2e1cb45a5c547693ea623c706 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 13 May 2011 16:21:39 +0000 Subject: [PATCH] (bug 10154) Don't allow user to specify days beyond $wgRCMaxAge --- 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 8e5de31b73..42e030e9f6 100644 --- a/includes/AjaxFunctions.php +++ b/includes/AjaxFunctions.php @@ -83,19 +83,3 @@ function code2utf( $num ) { return ''; } - -/** - * Called in some places (currently just extensions) - * to get the URL for a given file. - */ -function wfAjaxGetFileUrl( $file ) { - $file = wfFindFile( $file ); - - if ( !$file || !$file->exists() ) { - return null; - } - - $url = $file->getUrl(); - - return $url; -} diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index c373be7d19..331793a335 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -5185,7 +5185,7 @@ $wgUseAjax = true; * List of Ajax-callable functions. * Extensions acting as Ajax callbacks must register here */ -$wgAjaxExportList = array( 'wfAjaxGetFileUrl' ); +$wgAjaxExportList = array(); /** * Enable watching/unwatching pages using AJAX. -- 2.20.1