Use wfMsgExt() instead of wfMsgReal()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 22 Apr 2011 21:05:47 +0000 (21:05 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 22 Apr 2011 21:05:47 +0000 (21:05 +0000)
includes/Skin.php

index 08b238a..45fcaa2 100644 (file)
@@ -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;