(Bug 26412) Search results headers no longer show a bogus edit link.
authorPlatonides <platonides@users.mediawiki.org>
Fri, 24 Dec 2010 13:28:12 +0000 (13:28 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Fri, 24 Dec 2010 13:28:12 +0000 (13:28 +0000)
RELEASE-NOTES
includes/specials/SpecialSearch.php

index b2823b0..5e9f8ea 100644 (file)
@@ -42,6 +42,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 26379) importImages.php gives more descriptive error message on failure.
 * (Bug 26410) + signs are no longer treated as spaces in internal links if 
   link has a % sign in it.
+* (Bug 26412) Search results headers no longer show a bogus edit link.
 
 === API changes in 1.18 ===
 * (bug 26339) Throw warning when truncating an overlarge API result
index b3812e3..eafbc44 100644 (file)
@@ -290,6 +290,7 @@ class SpecialSearch extends SpecialPage {
                        wfRunHooks( 'SpecialSearchNoResults', array( $term ) );
                } 
 
+               $wgOut->parserOptions()->setEditSection( false );
                if( $titleMatches ) {
                        if( $numTitleMatches > 0 ) {
                                $wgOut->wrapWikiMsg( "==$1==\n", 'titlematches' );