diff --git a/action.php b/action.php index 953bb29..81e28d9 100644 --- a/action.php +++ b/action.php @@ -18,7 +18,7 @@ * need to inherit from this class */ class action_plugin_filterrss extends DokuWiki_Action_Plugin { - function register(&$controller) { + function register(Doku_Event_Handler $controller) { $controller->register_hook('PARSER_CACHE_USE', 'BEFORE', $this, '_preventCache', array ()); } /** diff --git a/syntax.php b/syntax.php index c191302..dad3a9c 100644 --- a/syntax.php +++ b/syntax.php @@ -31,7 +31,7 @@ function connectTo($mode) { $this->Lexer->addSpecialPattern('\[filterrss.*?\]',$mode,'plugin_filterrss'); } - function handle($match, $state, $pos, &$handler) { + function handle($match, $state, $pos, Doku_Handler $handler) { //Remove ] from the end $match = substr($match, 0, -1); @@ -133,7 +133,7 @@ function handle($match, $state, $pos, &$handler) { return array('url' => $url, 'conditions' => $cond_output, 'order_by' => $order_by, 'desc' => $desc, 'limit' => $limit); } - function render($mode, &$renderer, $data) { + function render($mode, Doku_Renderer $renderer, $data) { if($mode == 'xhtml') { $filterrss =& plugin_load('helper', 'filterrss');