From 6565f6013d6ecfd66d2d629524cc297e6778a24e Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Tue, 2 Feb 2016 12:57:56 +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 c1e63a4..94d38c1 100644 --- a/action.php +++ b/action.php @@ -17,7 +17,7 @@ * need to inherit from this class */ class action_plugin_alphalist 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 3b5c39d..b158a5b 100644 --- a/syntax.php +++ b/syntax.php @@ -30,7 +30,7 @@ function connectTo($mode) { $this->Lexer->addSpecialPattern('\[alphalist.*?\]',$mode,'plugin_alphalist'); } - function handle($match, $state, $pos, &$handler) + function handle($match, $state, $pos, Doku_Handler $handler) { global $ID; @@ -130,7 +130,7 @@ function handle($match, $state, $pos, &$handler) return $list; } - function render($mode, &$renderer, $data) { + function render($mode, Doku_Renderer $renderer, $data) { setlocale(LC_COLLATE, $this->getConf('locale')); if($mode == 'xhtml') {