Make LogFormatter::msg() use RequestContext::msg() instead of reinventing the wheel...
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 15 Jun 2012 18:25:00 +0000 (20:25 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 15 Jun 2012 18:26:39 +0000 (20:26 +0200)
Change-Id: I4df5a2d1dc9e05d6cf92a0a4f6e77a36c063c58e

includes/logging/LogFormatter.php

index 1ba6a3b..93f3f83 100644 (file)
@@ -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 ) {