Index: trunk/phase3/includes/Parser.php |
— | — | @@ -3950,6 +3950,13 @@ |
3951 | 3951 | if ( $nt->getNamespace() == NS_IMAGE ) { |
3952 | 3952 | $this->mOutput->addImage( $nt->getDBkey() ); |
3953 | 3953 | } |
| 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 | + |
3954 | 3961 | } |
3955 | 3962 | return $ig->toHTML(); |
3956 | 3963 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -259,6 +259,8 @@ |
260 | 260 | * (bug 5683) Respect parser output marked as uncacheable when saving |
261 | 261 | * (bug 5918) Links autonumbering now work for all defined protocols |
262 | 262 | * (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 |
263 | 265 | |
264 | 266 | == Compatibility == |
265 | 267 | |