r4792 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r4791‎ | r4792 | r4793 >
Date:04:38, 15 August 2004
Author:vibber
Status:old
Tags:
Comment:
Use original instead of filtered search request for the optional new page edit link in nogomatch (de, etc)

Fix for Bug 54: go-search for non-existing page in a namespace returns broken new-edit URL
http://bugzilla.wikipedia.org/show_bug.cgi?id=54
Modified paths:
  • /trunk/phase3/includes/SearchEngine.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SearchEngine.php
@@ -476,7 +476,7 @@
477477 }
478478
479479 # No match, generate an edit URL
480 - $t = Title::newFromText( $this->mUsertext );
 480+ $t = Title::newFromText( $wgRequest->getText( "search" ) );
481481
482482 # If the feature is enabled, go straight to the edit page
483483 if ( $wgGoToEdit ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r4793Use original instead of filtered search request for the optional new page edi...vibber04:42, 15 August 2004
r4794One more tweak for the page subtitle. Fix for...vibber05:02, 15 August 2004
r4795Show the search terms as given instead of the filtered terms in the subtitle....vibber05:05, 15 August 2004

Status & tagging log