From f7dfe35d1ef95b1884b5c51779b4ac595d70a27b Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 9 Jan 2007 21:00:14 +0000 Subject: [PATCH] Load the ajax stuff once we have a title or we will not be able to parse wikitext. The parser requires a $wgTitle object or it throws an exception. --- RELEASE-NOTES | 1 + index.php | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 6a98f57d33..d28c38d572 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -33,6 +33,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Running maintenance/parserTests.php with '--record' option, will now automaticly tries to create its database tables. * Made the PLURAL: parser function return singular on -1 per default. +* Fixed up the AjaxSearch == Languages updated == diff --git a/index.php b/index.php index 964770ee4d..e3b753faf6 100644 --- a/index.php +++ b/index.php @@ -14,6 +14,11 @@ OutputPage::setEncodings(); # Not really used yet $action = $wgRequest->getVal( 'action', 'view' ); $title = $wgRequest->getVal( 'title' ); +$wgTitle = $mediaWiki->checkInitialQueries( $title,$action,$wgOut, $wgRequest, $wgContLang ); +if ($wgTitle == NULL) { + unset( $wgTitle ); +} + # # Send Ajax requests to the Ajax dispatcher. # @@ -26,10 +31,6 @@ if ( $wgUseAjax && $action == 'ajax' ) { exit; } -$wgTitle = $mediaWiki->checkInitialQueries( $title,$action,$wgOut, $wgRequest, $wgContLang ); -if ($wgTitle == NULL) { - unset( $wgTitle ); -} wfProfileOut( 'main-misc-setup' ); -- 2.20.1