r19034 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r19033‎ | r19034 | r19035 >
Date:21:00, 9 January 2007
Author:hashar
Status:old
Tags:
Comment:
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.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/index.php (modified) (history)

Diff [purge]

Index: trunk/phase3/index.php
@@ -14,6 +14,11 @@
1515 $action = $wgRequest->getVal( 'action', 'view' );
1616 $title = $wgRequest->getVal( 'title' );
1717
 18+$wgTitle = $mediaWiki->checkInitialQueries( $title,$action,$wgOut, $wgRequest, $wgContLang );
 19+if ($wgTitle == NULL) {
 20+ unset( $wgTitle );
 21+}
 22+
1823 #
1924 # Send Ajax requests to the Ajax dispatcher.
2025 #
@@ -26,10 +31,6 @@
2732 exit;
2833 }
2934
30 -$wgTitle = $mediaWiki->checkInitialQueries( $title,$action,$wgOut, $wgRequest, $wgContLang );
31 -if ($wgTitle == NULL) {
32 - unset( $wgTitle );
33 -}
3435
3536 wfProfileOut( 'main-misc-setup' );
3637
Index: trunk/phase3/RELEASE-NOTES
@@ -33,6 +33,7 @@
3434 * Running maintenance/parserTests.php with '--record' option, will now automaticly
3535 tries to create its database tables.
3636 * Made the PLURAL: parser function return singular on -1 per default.
 37+* Fixed up the AjaxSearch
3738
3839 == Languages updated ==
3940

Follow-up revisions

RevisionCommit summaryAuthorDate
r19460Backport r19034 : fix the ajax search by creating a title object...hashar19:09, 18 January 2007