From 6bc8739f6fe38a66d63073374b947091437f56c5 Mon Sep 17 00:00:00 2001 From: Robin Pepermans Date: Mon, 27 Jun 2011 23:58:46 +0000 Subject: [PATCH 1/1] Follow-up r90742: the parser should call getFunctionLang() --- includes/parser/Parser.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; } } -- 2.20.1