jenkins-bot has submitted this change and it was merged.

Change subject: Use $this->msg() instead of wfMessage() for proper context :)
......................................................................


Use $this->msg() instead of wfMessage() for proper context :)

Change-Id: Ifac0fa4739db8fc60043f98de3abb8d3227bbc7b
---
M CategoryTreePage.php
1 file changed, 5 insertions(+), 5 deletions(-)

Approvals:
  Reedy: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/CategoryTreePage.php b/CategoryTreePage.php
index 6cc7f07..2293850 100644
--- a/CategoryTreePage.php
+++ b/CategoryTreePage.php
@@ -53,7 +53,7 @@
                if ( $par ) {
                        $this->target = $par;
                } else {
-                       $this->target = $request->getVal( 'target', wfMessage( 
'rootcategory' )->text() );
+                       $this->target = $request->getVal( 'target', $this->msg( 
'rootcategory' )->text() );
                }
 
                $this->target = trim( $this->target );
@@ -90,13 +90,13 @@
 
                        if ( $title && $title->getArticleID() ) {
                                $output->addHTML( Xml::openElement( 'div', 
array( 'class' => 'CategoryTreeParents' ) ) );
-                               $output->addHTML( wfMessage( 
'categorytree-parents' )->parse() );
-                               $output->addHTML( wfMessage( 'colon-separator' 
)->escaped() );
+                               $output->addHTML( $this->msg( 
'categorytree-parents' )->parse() );
+                               $output->addHTML( $this->msg( 'colon-separator' 
)->escaped() );
 
                                $parents = $this->tree->renderParents( $title );
 
                                if ( $parents == '' ) {
-                                       $output->addHTML( wfMessage( 
'categorytree-no-parent-categories' )->parse() );
+                                       $output->addHTML( $this->msg( 
'categorytree-no-parent-categories' )->parse() );
                                } else {
                                        $output->addHTML( $parents );
                                }
@@ -108,7 +108,7 @@
                                $output->addHTML( Xml::closeElement( 'div' ) );
                        } else {
                                $output->addHTML( Xml::openElement( 'div', 
array( 'class' => 'CategoryTreeNotice' ) ) );
-                               $output->addHTML( wfMessage( 
'categorytree-not-found', $this->target )->parse() );
+                               $output->addHTML( $this->msg( 
'categorytree-not-found', $this->target )->parse() );
                                $output->addHTML( Xml::closeElement( 'div' ) );
                        }
                }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifac0fa4739db8fc60043f98de3abb8d3227bbc7b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CategoryTree
Gerrit-Branch: master
Gerrit-Owner: Chad <ch...@wikimedia.org>
Gerrit-Reviewer: Reedy <re...@wikimedia.org>
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