From: Alexandre Emsenhuber Date: Fri, 15 Jun 2012 18:25:00 +0000 (+0200) Subject: Make LogFormatter::msg() use RequestContext::msg() instead of reinventing the wheel... X-Git-Tag: 1.31.0-rc.0~23181^2 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=44a8e839297209a09ae211e226524d3fa7b6c7ba;p=lhc%2Fweb%2Fwiklou.git Make LogFormatter::msg() use RequestContext::msg() instead of reinventing the wheel and making everything itself. Change-Id: I4df5a2d1dc9e05d6cf92a0a4f6e77a36c063c58e --- 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 ) {