r7225 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r7224‎ | r7225 | r7226 >
Date:09:28, 22 January 2005
Author:jeluf
Status:old
Tags:
Comment:
BUG#1131 Fix headings containing interwiki links
Modified paths:
  • /branches/REL1_4/phase3/RELEASE-NOTES (modified) (history)
  • /branches/REL1_4/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: branches/REL1_4/phase3/includes/Parser.php
@@ -2358,7 +2358,7 @@
23592359 * @access private
23602360 */
23612361 /* private */ function formatHeadings( $text, $isMain=true ) {
2362 - global $wgInputEncoding, $wgMaxTocLevel, $wgContLang, $wgLinkHolders;
 2362+ global $wgInputEncoding, $wgMaxTocLevel, $wgContLang, $wgLinkHolders, $wgInterwikiLinkHolders;
23632363
23642364 $doNumberHeadings = $this->mOptions->getNumberHeadings();
23652365 $doShowToc = $this->mOptions->getShowToc();
@@ -2487,6 +2487,9 @@
24882488 $canonized_headline = preg_replace( '/<!--LINK ([0-9]*)-->/e',
24892489 "\$wgLinkHolders['texts'][\$1]",
24902490 $canonized_headline );
 2491+ $canonized_headline = preg_replace( '/<!--IWLINK ([0-9]*)-->/e',
 2492+ "\$wgInterwikiLinkHolders[\$1]",
 2493+ $canonized_headline );
24912494
24922495 # strip out HTML
24932496 $canonized_headline = preg_replace( '/<.*?' . '>/','',$canonized_headline );
Index: branches/REL1_4/phase3/RELEASE-NOTES
@@ -260,6 +260,7 @@
261261 (on by default)
262262 * (bug 1130) Show actual title when moving page instead of encoded one.
263263 * (bug 925) Fix headings containing <math>
 264+* (bug 1131) Fix headings containing interwiki links
264265
265266 === Caveats ===
266267

Follow-up revisions

RevisionCommit summaryAuthorDate
r7226BUG#1131 Fix headings containing interwiki linksjeluf09:34, 22 January 2005

Status & tagging log