Fix method signatures for PHP 7.0 compatibility
[mirrors/DokuWiki-Plugin-SVGEdit.git] / action.php
index f1a722db532bbd4f81328e873f55cf74ffea0145..549ee303de482530c2129235d02abe3e54548988 100644 (file)
@@ -15,13 +15,13 @@ class action_plugin_svgedit extends DokuWiki_Action_Plugin {
                          'url'    => 'http://www.dokuwiki.org/plugin:svgedit'
                  );
                }
-    function register(&$controller) {
+
+    function register(Doku_Event_Handler $controller) {
         $controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this,
                                    '_hookdo');
     }
-    function _hookdo(&$event, $param) {
+
+    function _hookdo(Doku_Event $event, $param) {
                        global $ID;
       if($event->data === 'export_svg' && auth_quickaclcheck($ID) >= AUTH_READ) {
                                header('Content-type: image/svg+xml');
This page took 0.09133 seconds and 4 git commands to generate.