From efe7e904170e6a1e5fb198bbe2c4c62f95e3c221 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 3 Feb 2016 12:48:29 +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 2b008b5..a1b5b21 100644 --- a/action.php +++ b/action.php @@ -30,7 +30,7 @@ function getInfo() { /** * Register its handlers with the DokuWiki's event controller */ - function register(&$controller) { + function register(Doku_Event_Handler $controller) { $controller->register_hook('TPL_METAHEADER_OUTPUT', 'BEFORE', $this, 'tableplot_hookjs'); } diff --git a/syntax.php b/syntax.php index 61f871e..55ad794 100644 --- a/syntax.php +++ b/syntax.php @@ -56,7 +56,7 @@ function connectTo($mode) { /** * Handle the match */ - function handle($match, $state, $pos, &$handler){ + function handle($match, $state, $pos, Doku_Handler $handler){ parse_str($match, $return); return $return; } @@ -68,7 +68,7 @@ function handle($match, $state, $pos, &$handler){ * @author Tom Cafferty * */ - function render($mode, &$renderer, $data) { + function render($mode, Doku_Renderer $renderer, $data) { global $INFO; global $ID; global $conf;