diff --git a/includes/MonacoTemplate.php b/includes/MonacoTemplate.php index a650d1f..d682586 100644 --- a/includes/MonacoTemplate.php +++ b/includes/MonacoTemplate.php @@ -1043,7 +1043,7 @@ function printMasthead() { if ( !$skin->showMasthead() ) { return; } - $wgLang = $this->getSkin()->getLanguage(); + $wgLang = $this->getSkin()->getContext()->getLanguage(); $user = $skin->getMastheadUser(); $username = $user->isAnon() ? wfMessage('masthead-anonymous-user')->text() : $user->getName(); $editcount = $wgLang->formatNum($user->isAnon() ? 0 : $user->getEditcount());