Load the ajax stuff once we have a title or we will not be able to parse
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 9 Jan 2007 21:00:14 +0000 (21:00 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 9 Jan 2007 21:00:14 +0000 (21:00 +0000)
wikitext. The parser requires a $wgTitle object or it throws an exception.

RELEASE-NOTES
index.php

index 6a98f57..d28c38d 100644 (file)
@@ -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 ==
 
index 964770e..e3b753f 100644 (file)
--- 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' );