From d5fe79ee9cfbfb16ff3894742bee00d63a3eba0e Mon Sep 17 00:00:00 2001 From: pinchies Date: Wed, 15 Apr 2020 15:37:03 +1000 Subject: [PATCH] Fix for PHP Warning #2 Fix for PHP Warning: Declaration of action_plugin_googlefonts::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /home/***/public_html/lib/plugins/googlefonts/action.php on line 72 --- action.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.php b/action.php index 23c662d..2615e59 100644 --- a/action.php +++ b/action.php @@ -16,7 +16,7 @@ class action_plugin_googlefonts extends DokuWiki_Action_Plugin { // register hook - function register(&$controller) { + function register(Doku_Event_Handler $controller) { $controller->register_hook('TPL_METAHEADER_OUTPUT','BEFORE', $this, '_addFontCode'); }