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'];