r7226 MediaWiki - Code Review archive

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

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -2376,7 +2376,7 @@
23772377 * @access private
23782378 */
23792379 /* private */ function formatHeadings( $text, $isMain=true ) {
2380 - global $wgInputEncoding, $wgMaxTocLevel, $wgContLang, $wgLinkHolders;
 2380+ global $wgInputEncoding, $wgMaxTocLevel, $wgContLang, $wgLinkHolders, $wgInterwikiLinkHolders;
23812381
23822382 $doNumberHeadings = $this->mOptions->getNumberHeadings();
23832383 $doShowToc = $this->mOptions->getShowToc();
@@ -2540,6 +2540,9 @@
25412541 $canonized_headline = preg_replace( '/<!--LINK ([0-9]*)-->/e',
25422542 "\$wgLinkHolders['texts'][\$1]",
25432543 $canonized_headline );
 2544+ $canonized_headline = preg_replace( '/<!--IWLINK ([0-9]*)-->/e',
 2545+ "\$wgInterwikiLinkHolders[\$1]",
 2546+ $canonized_headline );
25442547
25452548 # strip out HTML
25462549 $canonized_headline = preg_replace( '/<.*?' . '>/','',$canonized_headline );

Follow-up revisions

RevisionCommit summaryAuthorDate
r48833SocialProfile: apply r7226 (http://trac.wikia-code.com/changeset/7226) from w...ashley15:30, 25 March 2009

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r7225BUG#1131 Fix headings containing interwiki linksjeluf09:28, 22 January 2005

Status & tagging log