Florianschmidtwelzow has uploaded a new change for review.

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

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

Replace wfMsg* calls

Bug: T70750
Change-Id: I1ca1651dd34aef829e36407259294679f67aa5c0
---
M RandomInCategory.body.php
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/RandomInCategory 
refs/changes/16/262116/1

diff --git a/RandomInCategory.body.php b/RandomInCategory.body.php
index 55a9754..d4bbd73 100644
--- a/RandomInCategory.body.php
+++ b/RandomInCategory.body.php
@@ -35,7 +35,7 @@
                $title = $rnd->getRandomTitle();
 
                if( is_null( $title ) ) {
-                       $wgOut->addWikiText( wfMsg( 
'randomincategory-nocategory', $par ) );
+                       $wgOut->addWikiText( wfMessage( 
'randomincategory-nocategory', $par )->text() );
                        $wgOut->addHTML( $this->getForm( $par ) );
                        return;
                }
@@ -92,12 +92,12 @@
                $f =
                        Xml::openElement( 'form', array( 'method' => 'get', 
'action' => $wgScript ) ) .
                                Xml::openElement( 'fieldset' ) .
-                                       Xml::element( 'legend', array(), wfMsg( 
'randomincategory' ) ) .
+                                       Xml::element( 'legend', array(), 
wfMessage( 'randomincategory' )->text() ) .
                                        Html::Hidden( 'title', 
$this->getPageTitle()->getPrefixedText() ) .
                                        Xml::openElement( 'p' ) .
-                                               Xml::label( wfMsg( 
'randomincategory-label' ), 'category' ) . ' ' .
+                                               Xml::label( wfMessage( 
'randomincategory-label' )->text(), 'category' ) . ' ' .
                                                Xml::input( 'category', null, 
$category, array( 'id' => 'category' ) ) . ' ' .
-                                               Xml::submitButton( wfMsg( 
'randomincategory-submit' ) ) .
+                                               Xml::submitButton( wfMessage( 
'randomincategory-submit' )->text() ) .
                                        Xml::closeElement( 'p' ) .
                                Xml::closeElement( 'fieldset' ) .
                        Xml::closeElement( 'form' );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1ca1651dd34aef829e36407259294679f67aa5c0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/RandomInCategory
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