Pass $title to 'GetLinkColours' hook
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 30 Jul 2018 15:25:25 +0000 (17:25 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 31 Jul 2018 03:00:00 +0000 (05:00 +0200)
commit7b3da79f507d2211ac66fd8255b5b273b6c4262f
tree0b6325df4131d39039e0f3e05b45adde54b191ef
parentfb1b454e6a6fb5cf4df40ce9cfa329f207ff0a10
Pass $title to 'GetLinkColours' hook

I think it's reasonable for link "colours" to depend on the page on
which they are shown. It seems similar to how self-links are handled.
The $colours variable is not cached, so title-specific link colours
will not "leak" to other titles.

Used in ProofreadPage in Ic910c2c33a6f1f8a70d9a122fbd2128428f29bd5.

Bug: T199288
Change-Id: I7378102a3e06544e9e695b255982c9bb0cfbf3a2
RELEASE-NOTES-1.32
docs/hooks.txt
includes/parser/LinkHolderArray.php