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 |
||
|---|---|---|
| .. | ||
| code-coverage | ||
| databases | ||
| html | ||
| php-memcached | ||
| uidesign | ||
| contenthandler.txt | ||
| database.txt | ||
| deferred.txt | ||
| design.txt | ||
| distributors.txt | ||
| doxygen_first_page.php | ||
| export-0.1.xsd | ||
| export-0.2.xsd | ||
| export-0.3.xsd | ||
| export-0.4.xsd | ||
| export-0.5.xsd | ||
| export-0.6.xsd | ||
| export-0.7.xsd | ||
| export-0.8.xsd | ||
| export-demo.xml | ||
| globals.txt | ||
| hooks.txt | ||
| language.txt | ||
| linkcache.txt | ||
| magicword.txt | ||
| maintenance.txt | ||
| memcached.txt | ||
| README | ||
| schema.txt | ||
| scripts.txt | ||
| skin.txt | ||
| title.txt | ||
/docs Directory README ====================== The 'docs' directory contain various text files that should help you understand the most important parts of the code of MediaWiki. More in-depth documentation can be found at: https://www.mediawiki.org/wiki/Manual:Code API documentation is automatically generated and updated daily at: https://doc.wikimedia.org/mediawiki-core/master/php/html/ You can get a fresh version using 'make doc' or mwdocgen.php in the ../maintenance/ directory. For end users, most of the documentation is located online at: https://www.mediawiki.org/wiki/Help:Contents Documentation for MediaWiki site administrators is at: https://www.mediawiki.org/wiki/Manual:Contents