Pass $parser, &$query and &$widthOption to the 'ImageBeforeProduceHTML' hook
authorJack Phoenix <ashley@uncyclomedia.co>
Sun, 10 Jun 2018 15:31:56 +0000 (18:31 +0300)
committerJack Phoenix <ashley@uncyclomedia.co>
Sun, 10 Jun 2018 15:31:56 +0000 (18:31 +0300)
commit088c6db48b8e2997cd496f131fa3bc789dba3da0
tree3c8d9b117819bb1345f24086411904d945ff2562
parentd62d7eff494c225b21c12242bc5bedcffc9f306d
Pass $parser, &$query and &$widthOption to the 'ImageBeforeProduceHTML' hook

This allows extensions to essentially reimplement Linker#makeImageLink
completely. Before this wasn't 100% possible as these three are needed for
that.

Inspired by wikiHow's core hacks to /includes/Linker.php, which can now be
moved to an ImageBeforeProduceHTML hook subscriber. wikiHow uses those
changes together with the WikihowArticle extension to heavily modify the
article DOM for various extensions and the default skin.

Change-Id: I8b5ab42d9cf021d66b90d15be68a0239643c10e3
RELEASE-NOTES-1.32
docs/hooks.txt
includes/Linker.php