From: Robin Pepermans Date: Mon, 27 Jun 2011 23:58:46 +0000 (+0000) Subject: Follow-up r90742: the parser should call getFunctionLang() X-Git-Tag: 1.31.0-rc.0~29236 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=6bc8739f6fe38a66d63073374b947091437f56c5;hp=3b9ae2ba4f5daa0bedc97fbc5557fccd19e8b30d;p=lhc%2Fweb%2Fwiklou.git Follow-up r90742: the parser should call getFunctionLang() --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 76974c935c..a2d294580d 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -4012,10 +4012,7 @@ class Parser { if ( $dot ) { $numbering .= '.'; } - global $wgBetterDirectionality; - $pagelang = $this->mTitle->getPageLanguage(); - $toclang = ( $wgBetterDirectionality ? $pagelang : $wgContLang ); - $numbering .= $toclang->formatNum( $sublevelCount[$i] ); + $numbering .= $this->getFunctionLang()->formatNum( $sublevelCount[$i] ); $dot = 1; } }