(bug 10154) Don't allow user to specify days beyond $wgRCMaxAge
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 13 May 2011 16:21:39 +0000 (16:21 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 13 May 2011 16:21:39 +0000 (16:21 +0000)
includes/AjaxFunctions.php
includes/DefaultSettings.php

index 8e5de31..42e030e 100644 (file)
@@ -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;
-}
index c373be7..331793a 100644 (file)
@@ -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.