Fix event regitration method

Adjust method signatures to match parent (as pointed by [Splitbrain](https://github.com/splitbrain) for [Userhomepage plugin](https://github.com/geekitude/dokuwiki-plugin-userhomepage)
This commit is contained in:
Simon DELAGE 2016-02-05 16:00:52 +01:00
parent 070c68c877
commit 364c91aa32

View file

@ -14,7 +14,7 @@ require_once (DOKU_PLUGIN . 'action.php');
class action_plugin_tagalerts extends DokuWiki_Action_Plugin{
function register(&$controller) {
function register(Doku_Event_Handler $controller) {
$controller->register_hook('TPL_METAHEADER_OUTPUT', 'AFTER', $this, 'init', array());
$controller->register_hook('TPL_TOC_RENDER', 'AFTER', $this, 'alert', array());
$controller->register_hook('PLUGIN_TAG_LINK', 'AFTER', $this, 'link', array());