From 0e23916fe72b2f28fc69866d4edb2e6708c32e7e Mon Sep 17 00:00:00 2001 From: Platonides Date: Fri, 24 Dec 2010 13:28:12 +0000 Subject: [PATCH] (Bug 26412) Search results headers no longer show a bogus edit link. --- RELEASE-NOTES | 1 + includes/specials/SpecialSearch.php | 1 + 2 files changed, 2 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b2823b04fa..5e9f8ead5b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index b3812e3c29..eafbc44cff 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -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' ); -- 2.20.1