r19460 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r19459‎ | r19460 | r19461 >
Date:19:09, 18 January 2007
Author:hashar
Status:old
Tags:
Comment:
Backport r19034 : fix the ajax search by creating a title object
since our parser needs a valid one.
Modified paths:
  • /branches/REL1_9/phase3/RELEASE-NOTES (modified) (history)
  • /branches/REL1_9/phase3/index.php (modified) (history)

Diff [purge]

Index: branches/REL1_9/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: branches/REL1_9/phase3/RELEASE-NOTES
@@ -18,6 +18,7 @@
1919 * (bug 8641) Fix order of updates to ipblocks table for updates from <=1.7
2020 * (bug 8673) Minor fix for web service API content-type header
2121 * Fix API revision list on PHP 5.2.1; bad reference assignment
 22+* Fixed up the AjaxSearch
2223
2324
2425 == MediaWiki 1.9 ==

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r19034Load the ajax stuff once we have a title or we will not be able to parse...hashar21:00, 9 January 2007