Use original instead of filtered search request for the optional new page edit link...
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 15 Aug 2004 04:38:35 +0000 (04:38 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 15 Aug 2004 04:38:35 +0000 (04:38 +0000)
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

includes/SearchEngine.php

index a9f20c4..4e64287 100644 (file)
@@ -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 ) {