From cc58e4cd6f8b406bfaf0655369da0229fc7df7d3 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Tue, 8 Mar 2016 16:53:32 +0000 Subject: [PATCH] ChangesList: Use context language for LogPage::getName() message Was calling escaped() directly on a Message object which resulted in a $wgLang lookup, thus ignoring the context language given to the class constructor. Change-Id: Ia8ce739178924299ca559088fc40a2b048d7ed72 --- includes/changes/ChangesList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/changes/ChangesList.php b/includes/changes/ChangesList.php index 15432da2b7..342b31d466 100644 --- a/includes/changes/ChangesList.php +++ b/includes/changes/ChangesList.php @@ -337,7 +337,7 @@ class ChangesList extends ContextSource { */ public function insertLog( &$s, $title, $logtype ) { $page = new LogPage( $logtype ); - $logname = $page->getName()->escaped(); + $logname = $page->getName()->setContext( $this->getContext() )->escaped(); $s .= $this->msg( 'parentheses' )->rawParams( Linker::linkKnown( $title, $logname ) )->escaped(); } -- 2.20.1