From 490963d9c70cac5699fb9cd03d11433608f4919d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Mon, 27 Apr 2009 07:24:07 +0000 Subject: [PATCH] * (bug 18535) Search tab tool-tops are corrupted --- RELEASE-NOTES | 1 + includes/specials/SpecialSearch.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 37f07de7f7..3ae32f32ad 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -374,6 +374,7 @@ The following extensions are migrated into MediaWiki 1.15: for it. * (bug 17020) Adding fallback encodings for Traditional and Simplified Chinese languages while the the text is typed as URLs. +* (bug 18535) Search tab tool-tops are corrupted == API changes in 1.15 == * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 28a4c9b920..b5e571a054 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -686,6 +686,7 @@ class SpecialSearch { $m = wfMsg( 'searchprofile-articles' ); $tt = wfMsg( 'searchprofile-articles-tooltip', $wgLang->commaList( SearchEngine::namespacesAsText( SearchEngine::defaultNamespaces() ) ) ); + $tt = Sanitizer::decodeCharReferences( $tt ); // need to allow entities if( $this->active == 'default' ) { $out .= Xml::element( 'strong', array( 'title'=>$tt ), $m ); } else { @@ -706,6 +707,7 @@ class SpecialSearch { $m = wfMsg( 'searchprofile-project' ); $tt = wfMsg( 'searchprofile-project-tooltip', $wgLang->commaList( SearchEngine::namespacesAsText( SearchEngine::projectNamespaces() ) ) ); + $tt = Sanitizer::decodeCharReferences( $tt ); // need to allow entities if( $this->active == 'project' ) { $out .= Xml::element( 'strong', array( 'title'=>$tt ), $m ); } else { -- 2.20.1