From 44a8e839297209a09ae211e226524d3fa7b6c7ba Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 15 Jun 2012 20:25:00 +0200 Subject: [PATCH] Make LogFormatter::msg() use RequestContext::msg() instead of reinventing the wheel and making everything itself. Change-Id: I4df5a2d1dc9e05d6cf92a0a4f6e77a36c063c58e --- includes/logging/LogFormatter.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/logging/LogFormatter.php b/includes/logging/LogFormatter.php index 1ba6a3b66e..93f3f83d40 100644 --- a/includes/logging/LogFormatter.php +++ b/includes/logging/LogFormatter.php @@ -496,9 +496,7 @@ class LogFormatter { * @return Message */ protected function msg( $key ) { - return wfMessage( $key ) - ->inLanguage( $this->context->getLanguage() ) - ->title( $this->context->getTitle() ); + return $this->context->msg( $key ); } protected function makeUserLink( User $user ) { -- 2.20.1