X-Git-Url: http://git.harvie.cz/?p=mirrors%2FDokuWiki-Plugin-SVGEdit.git;a=blobdiff_plain;f=action.php;fp=action.php;h=549ee303de482530c2129235d02abe3e54548988;hp=f1a722db532bbd4f81328e873f55cf74ffea0145;hb=07e219af88cb99f7d233b07315e7dbb365708de7;hpb=a88ccc3a5bec0cf55f1fbb01afa5382a9c06d7ad 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');