From 6946b487961b1089676ab2eea3ae7ead2e3f7380 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 22 Jan 2016 17:42:05 +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 99a30cd..f082f9d 100644 --- a/action.php +++ b/action.php @@ -19,7 +19,7 @@ class action_plugin_plantuml extends DokuWiki_Action_Plugin { /** * Register the event handler */ - function register(&$controller) { + function register(Doku_Event_Handler $controller) { if($this->getConf('button_enabled') == '1') $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insert_button', array ()); } diff --git a/syntax.php b/syntax.php index ef1aef9..fc45a90 100644 --- a/syntax.php +++ b/syntax.php @@ -38,7 +38,7 @@ function connectTo($mode) { /** * Handle the match */ - function handle($match, $state, $pos, &$handler) { + function handle($match, $state, $pos, Doku_Handler $handler) { // echo "handle: state=$state
"; // echo "handle: match=$match
"; // echo "handle: pos=$pos
"; @@ -109,7 +109,7 @@ function _cachename($data, $ext){ /** * Create output */ - function render($mode, &$renderer, $data) { + function render($mode, Doku_Renderer $renderer, $data) { if ($mode == 'xhtml') { $img = DOKU_BASE . 'lib/plugins/plantuml/img.php?' . buildURLParams($data);