r14210 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14209‎ | r14210 | r14211 >
Date:03:13, 14 May 2006
Author:robchurch
Status:old
Tags:
Comment:
(bug 5937) Register links from gallery captions with the parent parser output object so that link tables receive those updates too
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -3950,6 +3950,13 @@
39513951 if ( $nt->getNamespace() == NS_IMAGE ) {
39523952 $this->mOutput->addImage( $nt->getDBkey() );
39533953 }
 3954+
 3955+ # Register links with the parent parser
 3956+ foreach( $pout->getLinks() as $ns => $keys ) {
 3957+ foreach( $keys as $dbk => $id )
 3958+ $this->mOutput->addLink( Title::makeTitle( $ns, $dbk ), $id );
 3959+ }
 3960+
39543961 }
39553962 return $ig->toHTML();
39563963 }
Index: trunk/phase3/RELEASE-NOTES
@@ -259,6 +259,8 @@
260260 * (bug 5683) Respect parser output marked as uncacheable when saving
261261 * (bug 5918) Links autonumbering now work for all defined protocols
262262 * (bug 5935) Improvement to German localisation (de)
 263+* (bug 5937) Register links from gallery captions with the parent parser output
 264+ object so that link tables receive those updates too
263265
264266 == Compatibility ==
265267

Status & tagging log