Index: trunk/phase3/includes/Parser.php |
— | — | @@ -2376,7 +2376,7 @@ |
2377 | 2377 | * @access private |
2378 | 2378 | */ |
2379 | 2379 | /* private */ function formatHeadings( $text, $isMain=true ) { |
2380 | | - global $wgInputEncoding, $wgMaxTocLevel, $wgContLang, $wgLinkHolders; |
| 2380 | + global $wgInputEncoding, $wgMaxTocLevel, $wgContLang, $wgLinkHolders, $wgInterwikiLinkHolders; |
2381 | 2381 | |
2382 | 2382 | $doNumberHeadings = $this->mOptions->getNumberHeadings(); |
2383 | 2383 | $doShowToc = $this->mOptions->getShowToc(); |
— | — | @@ -2540,6 +2540,9 @@ |
2541 | 2541 | $canonized_headline = preg_replace( '/<!--LINK ([0-9]*)-->/e', |
2542 | 2542 | "\$wgLinkHolders['texts'][\$1]", |
2543 | 2543 | $canonized_headline ); |
| 2544 | + $canonized_headline = preg_replace( '/<!--IWLINK ([0-9]*)-->/e', |
| 2545 | + "\$wgInterwikiLinkHolders[\$1]", |
| 2546 | + $canonized_headline ); |
2544 | 2547 | |
2545 | 2548 | # strip out HTML |
2546 | 2549 | $canonized_headline = preg_replace( '/<.*?' . '>/','',$canonized_headline ); |