Follow-up r90742: the parser should call getFunctionLang()
authorRobin Pepermans <robin@users.mediawiki.org>
Mon, 27 Jun 2011 23:58:46 +0000 (23:58 +0000)
committerRobin Pepermans <robin@users.mediawiki.org>
Mon, 27 Jun 2011 23:58:46 +0000 (23:58 +0000)
includes/parser/Parser.php

index 76974c9..a2d2945 100644 (file)
@@ -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;
                                }
                        }