From 0fdb7455af6d5e42e88505911b1c912d2e55efc7 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 8 Dec 2010 10:00:25 +0000 Subject: [PATCH] Use the AutoLoader to load the AjaxDispatcher class --- includes/AjaxDispatcher.php | 2 +- index.php | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) 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(); -- 2.20.1