From: Chad Horohoe Date: Fri, 13 May 2011 16:21:39 +0000 (+0000) Subject: (bug 10154) Don't allow user to specify days beyond $wgRCMaxAge X-Git-Tag: 1.31.0-rc.0~30240 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=e7c48351b1cdf6a2e1cb45a5c547693ea623c706;p=lhc%2Fweb%2Fwiklou.git (bug 10154) Don't allow user to specify days beyond $wgRCMaxAge --- 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.