From: Rob Church Date: Sun, 14 May 2006 03:13:17 +0000 (+0000) Subject: (bug 5937) Register links from gallery captions with the parent parser output object... X-Git-Tag: 1.31.0-rc.0~57151 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=dc701270a6834a0f55c3280eb45e9acf4a79837a;p=lhc%2Fweb%2Fwiklou.git (bug 5937) Register links from gallery captions with the parent parser output object so that link tables receive those updates too --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 0efb05786d..ffef1058dc 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -259,6 +259,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 5683) Respect parser output marked as uncacheable when saving * (bug 5918) Links autonumbering now work for all defined protocols * (bug 5935) Improvement to German localisation (de) +* (bug 5937) Register links from gallery captions with the parent parser output + object so that link tables receive those updates too == Compatibility == diff --git a/includes/Parser.php b/includes/Parser.php index 9a8405355b..5d272345b9 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -3950,6 +3950,13 @@ class Parser if ( $nt->getNamespace() == NS_IMAGE ) { $this->mOutput->addImage( $nt->getDBkey() ); } + + # Register links with the parent parser + foreach( $pout->getLinks() as $ns => $keys ) { + foreach( $keys as $dbk => $id ) + $this->mOutput->addLink( Title::makeTitle( $ns, $dbk ), $id ); + } + } return $ig->toHTML(); }