From: Alexandre Emsenhuber Date: Fri, 22 Apr 2011 21:05:47 +0000 (+0000) Subject: Use wfMsgExt() instead of wfMsgReal() X-Git-Tag: 1.31.0-rc.0~30623 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=0ca36d006e2383f28d8c27000a3a3c24c8c8e54f;p=lhc%2Fweb%2Fwiklou.git Use wfMsgExt() instead of wfMsgReal() --- diff --git a/includes/Skin.php b/includes/Skin.php index 08b238a035..45fcaa2397 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1527,7 +1527,7 @@ abstract class Skin { if ( !is_null( $tooltip ) ) { # Bug 25462: undo double-escaping. $tooltip = Sanitizer::decodeCharReferences( $tooltip ); - $attribs['title'] = wfMsgReal( 'editsectionhint', array( $tooltip ), true, $lang ); + $attribs['title'] = wfMsgExt( 'editsectionhint', array( 'language' => $lang, 'parsemag' ), $tooltip ); } $link = Linker::link( $nt, wfMsgExt( 'editsection', array( 'language' => $lang ) ), $attribs, @@ -1539,7 +1539,7 @@ abstract class Skin { # we can rid of it someday. $attribs = ''; if ( $tooltip ) { - $attribs = htmlspecialchars( wfMsgReal( 'editsectionhint', array( $tooltip ), true, $lang ) ); + $attribs = wfMsgExt( 'editsectionhint', array( 'language' => $lang, 'parsemag', 'escape' ), $tooltip ); $attribs = " title=\"$attribs\""; } $result = null;