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;