Matěj Suchánek has uploaded a new change for review.

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

Change subject: Use class message method instead of global
......................................................................

Use class message method instead of global

Change-Id: I1e746efafcfbc494fe6b704c222f7397e2b4d35b
---
M repo/includes/Actions/EditEntityAction.php
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/26/315326/2

diff --git a/repo/includes/Actions/EditEntityAction.php 
b/repo/includes/Actions/EditEntityAction.php
index b034617..3edada1 100644
--- a/repo/includes/Actions/EditEntityAction.php
+++ b/repo/includes/Actions/EditEntityAction.php
@@ -422,7 +422,7 @@
 
                return Linker::linkKnown(
                        $this->getContext()->getTitle(),
-                       wfMessage( 'cancel' )->parse(),
+                       $this->msg( 'cancel' )->parse(),
                        array( 'id' => 'mw-editform-cancel' ),
                        $cancelParams
                );
@@ -558,7 +558,7 @@
 
                $this->getOutput()->addHTML( "<p class='editOptions'>\n" );
 
-               $labelText = wfMessage( 'wikibase-summary-generated' )->text();
+               $labelText = $this->msg( 'wikibase-summary-generated' )->text();
                list( $label, $field ) = $this->getSummaryInput( $labelText );
                $this->getOutput()->addHTML( $label . "\n" . Html::rawElement( 
'br' ) . "\n" . $field );
                $this->getOutput()->addHTML( "<p class='editButtons'>\n" );
@@ -566,7 +566,7 @@
 
                $cancel = $this->getCancelLink();
                if ( $cancel !== '' ) {
-                       $this->getOutput()->addHTML( wfMessage( 
'pipe-separator' )->escaped() );
+                       $this->getOutput()->addHTML( $this->msg( 
'pipe-separator' )->escaped() );
                        $this->getOutput()->addHTML( $cancel );
                }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1e746efafcfbc494fe6b704c222f7397e2b4d35b
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Matěj Suchánek <matejsuchane...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to