Index: branches/REL1_4/phase3/includes/Parser.php |
— | — | @@ -2358,7 +2358,7 @@ |
2359 | 2359 | * @access private |
2360 | 2360 | */ |
2361 | 2361 | /* private */ function formatHeadings( $text, $isMain=true ) { |
2362 | | - global $wgInputEncoding, $wgMaxTocLevel, $wgContLang, $wgLinkHolders; |
| 2362 | + global $wgInputEncoding, $wgMaxTocLevel, $wgContLang, $wgLinkHolders, $wgInterwikiLinkHolders; |
2363 | 2363 | |
2364 | 2364 | $doNumberHeadings = $this->mOptions->getNumberHeadings(); |
2365 | 2365 | $doShowToc = $this->mOptions->getShowToc(); |
— | — | @@ -2487,6 +2487,9 @@ |
2488 | 2488 | $canonized_headline = preg_replace( '/<!--LINK ([0-9]*)-->/e', |
2489 | 2489 | "\$wgLinkHolders['texts'][\$1]", |
2490 | 2490 | $canonized_headline ); |
| 2491 | + $canonized_headline = preg_replace( '/<!--IWLINK ([0-9]*)-->/e', |
| 2492 | + "\$wgInterwikiLinkHolders[\$1]", |
| 2493 | + $canonized_headline ); |
2491 | 2494 | |
2492 | 2495 | # strip out HTML |
2493 | 2496 | $canonized_headline = preg_replace( '/<.*?' . '>/','',$canonized_headline ); |
Index: branches/REL1_4/phase3/RELEASE-NOTES |
— | — | @@ -260,6 +260,7 @@ |
261 | 261 | (on by default) |
262 | 262 | * (bug 1130) Show actual title when moving page instead of encoded one. |
263 | 263 | * (bug 925) Fix headings containing <math> |
| 264 | +* (bug 1131) Fix headings containing interwiki links |
264 | 265 | |
265 | 266 | === Caveats === |
266 | 267 | |