r86738 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86737‎ | r86738 | r86739 >
Date:21:05, 22 April 2011
Author:ialex
Status:ok
Tags:
Comment:
Use wfMsgExt() instead of wfMsgReal()
Modified paths:
  • /trunk/phase3/includes/Skin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Skin.php
@@ -1527,7 +1527,7 @@
15281528 if ( !is_null( $tooltip ) ) {
15291529 # Bug 25462: undo double-escaping.
15301530 $tooltip = Sanitizer::decodeCharReferences( $tooltip );
1531 - $attribs['title'] = wfMsgReal( 'editsectionhint', array( $tooltip ), true, $lang );
 1531+ $attribs['title'] = wfMsgExt( 'editsectionhint', array( 'language' => $lang, 'parsemag' ), $tooltip );
15321532 }
15331533 $link = Linker::link( $nt, wfMsgExt( 'editsection', array( 'language' => $lang ) ),
15341534 $attribs,
@@ -1539,7 +1539,7 @@
15401540 # we can rid of it someday.
15411541 $attribs = '';
15421542 if ( $tooltip ) {
1543 - $attribs = htmlspecialchars( wfMsgReal( 'editsectionhint', array( $tooltip ), true, $lang ) );
 1543+ $attribs = wfMsgExt( 'editsectionhint', array( 'language' => $lang, 'parsemag', 'escape' ), $tooltip );
15441544 $attribs = " title=\"$attribs\"";
15451545 }
15461546 $result = null;

Status & tagging log