From 485545ae3ad6b77ac9f0b42d5f6dd839604ef775 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 22 Jan 2016 17:19:40 +0100 Subject: [PATCH] Adjust method signatures to match parent --- action.php | 2 +- syntax.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/action.php b/action.php index 14a8537..4f4d9a8 100644 --- a/action.php +++ b/action.php @@ -33,7 +33,7 @@ function getInfo(){ /****************************************************************************** ** Register its handlers with the dokuwiki's event controller */ - function register(&$controller) { + function register(Doku_Event_Handler $controller) { $controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, '_handle_act', array()); $controller->register_hook('TPL_ACT_UNKNOWN', 'BEFORE', $this, 'output', array()); } diff --git a/syntax.php b/syntax.php index 689125a..6cf31df 100644 --- a/syntax.php +++ b/syntax.php @@ -43,7 +43,7 @@ function connectTo($mode){ /******************************************************************************/ /* handle the match */ - function handle($match, $state, $pos, &$handler) { + function handle($match, $state, $pos, Doku_Handler $handler) { global $ID, $conf; $match = substr($match,strlen('{{anss>'),-2); //strip markup from start and end @@ -71,7 +71,7 @@ function handle($match, $state, $pos, &$handler) { /* render output * @author Taggic */ - function render($mode, &$renderer, $ans_conf) { + function render($mode, Doku_Renderer $renderer, $ans_conf) { global $ID, $conf; $xhtml_renderer = new Doku_Renderer_xhtml(); $records = file(DOKU_PLUGIN.'anewssystem/tpl/newstemplate_'.$conf['lang'].'.txt');