From 72ad13c315ac7e13c94514f7b6df655fc86ff07e Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 3 Feb 2016 12:52:45 +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 802993a..60a15ed 100644 --- a/action.php +++ b/action.php @@ -31,7 +31,7 @@ function getInfo() { } // register hook - function register(&$controller) { + function register(Doku_Event_Handler $controller) { $controller->register_hook('ACTION_SHOW_REDIRECT', 'BEFORE', $this, 'handle_redirect'); $controller->register_hook('HTML_EDITFORM_OUTPUT', 'BEFORE', $this, 'handle_form'); $controller->register_hook('DOKUWIKI_STARTED', 'BEFORE', $this, 'handle_started'); diff --git a/syntax.php b/syntax.php index 7b85df1..47bcec7 100644 --- a/syntax.php +++ b/syntax.php @@ -102,7 +102,7 @@ function connectTo($mode) { /** * Handle the match */ - function handle($match, $state, $pos, &$handler){ + function handle($match, $state, $pos, Doku_Handler $handler){ $match = substr($match,6,-2); return array($match); } @@ -110,7 +110,7 @@ function handle($match, $state, $pos, &$handler){ /** * Create output */ - function render($mode, &$renderer, $data) { + function render($mode, Doku_Renderer $renderer, $data) { global $ID; global $conf;