X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=action.php;h=549ee303de482530c2129235d02abe3e54548988;hb=b4661721df91118b2244672976cb719f63b0548a;hp=f1a722db532bbd4f81328e873f55cf74ffea0145;hpb=b3a6ad9d8ae6d6a835ceab584a3ad870b9d7caa9;p=mirrors%2FDokuWiki-Plugin-SVGEdit.git diff --git a/action.php b/action.php index f1a722d..549ee30 100644 --- a/action.php +++ b/action.php @@ -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');