From: Antoine Musso Date: Tue, 9 Jan 2007 21:00:14 +0000 (+0000) Subject: Load the ajax stuff once we have a title or we will not be able to parse X-Git-Tag: 1.31.0-rc.0~54543 X-Git-Url: http://git.cyclocoop.org//%22%22.str_replace%28%27%22%27%2C?a=commitdiff_plain;h=f7dfe35d1ef95b1884b5c51779b4ac595d70a27b;p=lhc%2Fweb%2Fwiklou.git 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. --- 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' );