From: Brion Vibber Date: Sun, 15 Aug 2004 04:38:35 +0000 (+0000) Subject: Use original instead of filtered search request for the optional new page edit link... X-Git-Tag: 1.5.0alpha1~2341 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=22f1d044a9e11b41777c48c8e3aab441d34c792c;p=lhc%2Fweb%2Fwiklou.git 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 --- diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index a9f20c4345..4e64287c29 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -476,7 +476,7 @@ class SearchEngine { } # No match, generate an edit URL - $t = Title::newFromText( $this->mUsertext ); + $t = Title::newFromText( $wgRequest->getText( "search" ) ); # If the feature is enabled, go straight to the edit page if ( $wgGoToEdit ) {