Florianschmidtwelzow has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/262122

Change subject: Replace wfMsg* calls
......................................................................

Replace wfMsg* calls

Bug: T70750
Change-Id: I94110c791491c5bae1790f2c47c6220d752f2455
---
M HTMLets.php
1 file changed, 10 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/HTMLets 
refs/changes/22/262122/1

diff --git a/HTMLets.php b/HTMLets.php
index 8bd82a5..16683b4 100644
--- a/HTMLets.php
+++ b/HTMLets.php
@@ -91,11 +91,19 @@
        $f = "$dir/$name";
 
        if ( !preg_match('!^\w+://!', $dir ) && !file_exists( $f ) ) {
-               $output = Html::rawElement( 'div', array( 'class' => 'error' ), 
wfMsgForContent( 'htmlets-filenotfound', htmlspecialchars( $name ) ) );
+               $output = Html::rawElement(
+                       'div',
+                       array( 'class' => 'error' ),
+                       wfMessage( 'htmlets-filenotfound', $name 
)->inContentLanguage()->escaped()
+               );
        } else {
                $output = file_get_contents( $f );
                if ( $output === false ) {
-                       $output = Html::rawElement( 'div', array( 'class' => 
'error' ), wfMsgForContent( 'htmlets-loadfailed', htmlspecialchars( $name ) ) );
+                       $output = Html::rawElement(
+                               'div',
+                               array( 'class' => 'error' ),
+                               wfMessage( 'htmlets-loadfailed', $name 
)->inContentLanguage()->escaped()
+                       );
                }
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/262122
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I94110c791491c5bae1790f2c47c6220d752f2455
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/HTMLets
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to