Georggi199 has uploaded a new change for review.

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

Change subject: Bug T70750, replaced deprecated wfMsg*() functions
......................................................................

Bug T70750, replaced deprecated wfMsg*() functions

Change-Id: If03bd032dbd769b9947b7be0fccfb49dda954211
---
M ShoutBox.php
1 file changed, 6 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ShoutBox 
refs/changes/52/182352/1

diff --git a/ShoutBox.php b/ShoutBox.php
index 6011aba..bad7401 100644
--- a/ShoutBox.php
+++ b/ShoutBox.php
@@ -153,7 +153,7 @@
                $params = @unserialize( @base64_decode( $matches[1] ) );
                if( !$params ) {
                        return '<div class="errorbox">' .
-                               wfMsg( 'shoutbox-unparsable-param-string', 
@htmlspecialchars( $matches[1] ) ) .
+                               wfMessage( 'shoutbox-unparsable-param-string', 
@htmlspecialchars( $matches[1] ) )->text() .
                        '</div>';
                }
 
@@ -164,7 +164,7 @@
 
                if( $id == null || !is_numeric( $id ) ) {
                        return '<div class="errorbox">' .
-                               wfMsg( 'shoutbox-bad-id', @htmlspecialchars( 
$id ) ) .
+                               wfMessage( 'shoutbox-bad-id', 
@htmlspecialchars( $id ) )->text() .
                        '</div>';
                }
 
@@ -180,7 +180,7 @@
                                $params['width'] > $wgShoutBoxMaxWidth
                        ) {
                                return '<div class="errorbox">' .
-                                       wfMsg( 'shoutbox-illegal-width', 
@htmlspecialchars( $params['width'] ) ) .
+                                       wfMessage( 'shoutbox-illegal-width', 
@htmlspecialchars( $params['width'] ) )->text() .
                                '</div>';
                        }
                        $width = $params['width'];
@@ -195,16 +195,16 @@
                        )
                        {
                                return '<div class="errorbox">' .
-                                       wfMsg( 'shoutbox-illegal-height', 
@htmlspecialchars( $params['height'] ) ) .
+                                       wfMessage( 'shoutbox-illegal-height', 
@htmlspecialchars( $params['height'] ) )->text() .
                                '</div>';
                        }
                        $height = $params['height'];
                }
 
                if( $wgShoutBoxCSS ) {
-                       $url = wfMsgForContent( 'shoutbox-url-with-css', $id, 
urlencode( $wgShoutBoxCSS ) );
+                       $url = wfMessage( 'shoutbox-url-with-css', $id, 
urlencode( $wgShoutBoxCSS ) )->inContentLanguage()->text();
                } else {
-                       $url = wfMsgForContent( 'shoutbox-url', $id );
+                       $url = wfMessage( 'shoutbox-url', $id 
)->inContentLanguage()->text();
                }
 
                return '<iframe src="' . $url . '" width="' . $width . '" 
height="' .

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If03bd032dbd769b9947b7be0fccfb49dda954211
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ShoutBox
Gerrit-Branch: master
Gerrit-Owner: Georggi199 <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to