Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -4183,7 +4183,7 @@ |
4184 | 4184 | if ( $prevtoclevel > 0 && $prevtoclevel < $wgMaxTocLevel ) { |
4185 | 4185 | $toc .= Linker::tocUnindent( $prevtoclevel - 1 ); |
4186 | 4186 | } |
4187 | | - $toc = Linker::tocList( $toc, $this->mOptions->getUserLang() ); |
| 4187 | + $toc = Linker::tocList( $toc, $this->mOptions->getUserLangObj() ); |
4188 | 4188 | $this->mOutput->setTOCHTML( $toc ); |
4189 | 4189 | } |
4190 | 4190 | |
Index: trunk/phase3/includes/job/RefreshLinksJob.php |
— | — | @@ -22,7 +22,7 @@ |
23 | 23 | * @return boolean success |
24 | 24 | */ |
25 | 25 | function run() { |
26 | | - global $wgParser; |
| 26 | + global $wgParser, $wgContLang; |
27 | 27 | wfProfileIn( __METHOD__ ); |
28 | 28 | |
29 | 29 | $linkCache = LinkCache::singleton(); |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | } |
44 | 44 | |
45 | 45 | wfProfileIn( __METHOD__.'-parse' ); |
46 | | - $options = new ParserOptions; |
| 46 | + $options = ParserOptions::newFromUserAndLang( new User, $wgContLang ); |
47 | 47 | $parserOutput = $wgParser->parse( $revision->getText(), $this->title, $options, true, true, $revision->getId() ); |
48 | 48 | wfProfileOut( __METHOD__.'-parse' ); |
49 | 49 | wfProfileIn( __METHOD__.'-update' ); |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | * @return boolean success |
73 | 73 | */ |
74 | 74 | function run() { |
75 | | - global $wgParser; |
| 75 | + global $wgParser, $wgContLang; |
76 | 76 | |
77 | 77 | wfProfileIn( __METHOD__ ); |
78 | 78 | |
— | — | @@ -105,6 +105,7 @@ |
106 | 106 | wfProfileOut( __METHOD__ ); |
107 | 107 | return true; |
108 | 108 | } |
| 109 | + $options = ParserOptions::newFromUserAndLang( new User, $wgContLang ); |
109 | 110 | # Re-parse each page that transcludes this page and update their tracking links... |
110 | 111 | foreach ( $titles as $title ) { |
111 | 112 | $revision = Revision::newFromTitle( $title ); |
— | — | @@ -114,7 +115,6 @@ |
115 | 116 | return false; |
116 | 117 | } |
117 | 118 | wfProfileIn( __METHOD__.'-parse' ); |
118 | | - $options = new ParserOptions; |
119 | 119 | $parserOutput = $wgParser->parse( $revision->getText(), $title, $options, true, true, $revision->getId() ); |
120 | 120 | wfProfileOut( __METHOD__.'-parse' ); |
121 | 121 | wfProfileIn( __METHOD__.'-update' ); |