From 78754f3cc71752b52d4d8d78d91f62a225118e69 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 22 Jan 2016 17:44:41 +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 f92fc82..8876c18 100644 --- a/action.php +++ b/action.php @@ -32,7 +32,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 bc946af..82b9ab9 100644 --- a/syntax.php +++ b/syntax.php @@ -32,7 +32,7 @@ function connectTo($mode){ /******************************************************************************/ /* Handle the match */ - function handle($match, $state, $pos, &$handler){ + function handle($match, $state, $pos, Doku_Handler $handler){ $match = substr($match,8,-2); //strip markup from start and end //handle params @@ -98,7 +98,7 @@ function handle($match, $state, $pos, &$handler){ /******************************************************************************/ /* Create output */ - function render($mode, &$renderer, $data) { + function render($mode, Doku_Renderer $renderer, $data) { global $ID; global $lang; global $conf;