From 7d0395ed0e7150c9659b761c5c8f23e7c19e6db4 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 22 Jan 2016 17:35:20 +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 b71473e..6cf4cd4 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()); //HTML_UPDATEPROFILEFORM_OUTPUT diff --git a/syntax.php b/syntax.php index 227b656..67e923e 100644 --- a/syntax.php +++ b/syntax.php @@ -42,7 +42,7 @@ function connectTo($mode){ /******************************************************************************/ /* Handle the match */ - function handle($match, $state, $pos, &$handler){ + function handle($match, $state, $pos, Doku_Handler $handler){ $match = substr($match,15,-2); //strip markup from start and end //handle params $data = array(); @@ -98,7 +98,7 @@ function _captcha_ok() /******************************************************************************/ /* Create output */ - function render($mode, &$renderer, $data) { + function render($mode, Doku_Renderer $renderer, $data) { global $ID; $project = $data['project'];