From: Alexandre Emsenhuber Date: Wed, 8 Dec 2010 10:00:25 +0000 (+0000) Subject: Use the AutoLoader to load the AjaxDispatcher class X-Git-Tag: 1.31.0-rc.0~33447 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=0fdb7455af6d5e42e88505911b1c912d2e55efc7;p=lhc%2Fweb%2Fwiklou.git Use the AutoLoader to load the AjaxDispatcher class --- diff --git a/includes/AjaxDispatcher.php b/includes/AjaxDispatcher.php index 16e5301180..5ee14a5007 100644 --- a/includes/AjaxDispatcher.php +++ b/includes/AjaxDispatcher.php @@ -7,7 +7,7 @@ * Handle ajax requests and send them to the proper handler. */ -if ( !( defined( 'MEDIAWIKI' ) && $wgUseAjax ) ) { +if ( !defined( 'MEDIAWIKI' ) ) { die( 1 ); } diff --git a/index.php b/index.php index 7c61f771fc..74698661a0 100644 --- a/index.php +++ b/index.php @@ -59,11 +59,8 @@ $wgTitle = $mediaWiki->checkInitialQueries( $title, $action ); wfProfileOut( 'main-misc-setup' ); -# # Send Ajax requests to the Ajax dispatcher. -# if( $wgUseAjax && $action == 'ajax' ) { - require_once( $IP . '/includes/AjaxDispatcher.php' ); $dispatcher = new AjaxDispatcher(); $dispatcher->performAction(); $mediaWiki->restInPeace();