On 25/04/05, Tim Starling timstarling@users.sourceforge.net wrote:
Modified Files: Parser.php Log Message: Cleared $wgLinkHolders after they are used. This fixes bug 1770 and probably improves performance too.
This change has the unfortunate side-effect that one can no longer replace the link holders from just one part of the page, as this will cause all the link targets to be effectively thrown away (with some rather amusing effects).
The only place I know that does this is the hack to make links within image captions not disappear. This is very hacky at the moment anyway, as it uses the $wgParser global from Linker.php, but I'm just about done rewriting that code such that that part (i.e. the parsing part) will be in Parser.php anyway.
Would it be ugly to add a parameter to switch off this clearing out, so that that approach could still be used?