From f1bee1219c5846acb3ada0f9d82a4e2a129a4ff3 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 25 Feb 2012 15:23:45 +0000 Subject: [PATCH] * (bug 34528) Don't parse section name in edit section tooltips --- HISTORY | 1 + includes/Skin.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index f2ca52e796..03c6559af7 100644 --- a/HISTORY +++ b/HISTORY @@ -9,6 +9,7 @@ Change notes from older releases. For current info see RELEASE-NOTES-1.20. parameter without setting the text parameter. * UserMailer could potentially throw a fatal error when a MailAddress object had an empty email address. +* (bug 34528) Edit section tooltips show correction section name again === MediaWiki 1.18.1 === 2012-01-11 diff --git a/includes/Skin.php b/includes/Skin.php index dae965710a..7fc4a5ccae 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1499,7 +1499,7 @@ abstract class Skin extends ContextSource { if ( !is_null( $tooltip ) ) { # Bug 25462: undo double-escaping. $tooltip = Sanitizer::decodeCharReferences( $tooltip ); - $attribs['title'] = wfMsgExt( 'editsectionhint', array( 'language' => $lang, 'parsemag' ), $tooltip ); + $attribs['title'] = wfMsgExt( 'editsectionhint', array( 'language' => $lang, 'parsemag', 'replaceafter' ), $tooltip ); } $link = Linker::link( $nt, wfMsgExt( 'editsection', array( 'language' => $lang ) ), $attribs, @@ -1511,7 +1511,7 @@ abstract class Skin extends ContextSource { # we can rid of it someday. $attribs = ''; if ( $tooltip ) { - $attribs = wfMsgExt( 'editsectionhint', array( 'language' => $lang, 'parsemag', 'escape' ), $tooltip ); + $attribs = wfMsgExt( 'editsectionhint', array( 'language' => $lang, 'parsemag', 'escape', 'replaceafter' ), $tooltip ); $attribs = " title=\"$attribs\""; } $result = null; -- 2.20.1