includes/Linker.php: Added hook for "Media:" links
authorRobert Vogel <vogel@hallowelt.biz>
Tue, 25 Mar 2014 10:56:41 +0000 (11:56 +0100)
committerRobert Vogel <vogel@hallowelt.biz>
Mon, 14 Apr 2014 12:39:54 +0000 (14:39 +0200)
commit020fc0b649e4a69e94b11179772e79bafdda2da7
treec04287eaffea1d1069babdab666bed949f34a4ed
parent730c2c01a843cac4a98a12fe22ad7c2745abfe71
includes/Linker.php: Added hook for "Media:" links

The static method 'Linker::makeMediaLinkFile' produced a HTML string
without usage of MediaWiki 'Html' class. It also lacked a hook to allow
modifications of the output HTML.

I altered the implementation and added a hook that provides a signature
and behaviour similar to the existing 'LinkerMakeExternalLink' and
'LinkBegin'/'LinkEnd' hooks. It provides all available context information
and allows modification of single attributes or the output HTML as a
whole. I have updated the 'docs/hooks.txt' file to provide proper
documentation.

Change-Id: I6d7769298a4ca6cbbf807fcebb91fb0d2222f8d8
docs/hooks.txt
includes/Linker.php