Fix method signatures for PHP 7.0 compatibility 21/head
authorMichael Hamann <michael@content-space.de>
Sat, 16 Jan 2016 19:21:46 +0000 (20:21 +0100)
committerMichael Hamann <michael@content-space.de>
Sat, 16 Jan 2016 19:22:44 +0000 (20:22 +0100)
action.php
plugin.info.txt
syntax.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');
index 93a4aef7f302e8c89fabf4cc96fc6781aded9f98..d492ac2fe9fb76efef4a74b9dfafdb3a4c82b98b 100644 (file)
@@ -1,7 +1,7 @@
 base   svgedit
 author Thomas Mudrunka
 email  harvie[a]email_cz
-date   2014-05-20
+date   2016-01-16
 name   SVG-Edit plugin
 desc   A nice way, to create, store, edit, and embed SVG images in DokuWiki
 url    http://www.dokuwiki.org/plugin:svgedit
index 15dc2371b1fed1dce5ec5264d430f50bc855274f..e52c01683e2ba7274b80faca8a56fc36121ecc1b 100755 (executable)
@@ -43,7 +43,7 @@ class syntax_plugin_svgedit extends DokuWiki_Syntax_Plugin {
                                $this->Lexer->addSpecialPattern("<svg.+?</svg>", $mode, 'plugin_svgedit');
     } 
 
-    function handle($match, $state, $pos, &$handler) {
+    function handle($match, $state, $pos, Doku_Handler $handler) {
                                $type = substr($match,0,4);
         return array($type, $match); 
     }
@@ -64,7 +64,7 @@ class syntax_plugin_svgedit extends DokuWiki_Syntax_Plugin {
                                return '<a href="'.$svglink.'" type="image/svg+xml" /><'.$svgtag.'="'.$svglink.'" class="media'.$align.'" alt="'.$title.'" title="'.$title.'" type="image/svg+xml">'."</$svgtag_close></a>";
                }
 
-    function render($format, &$renderer, $data) {
+    function render($format, Doku_Renderer $renderer, $data) {
                                if ($format!='xhtml') return;
                                global $ID;
 
This page took 0.507513 seconds and 4 git commands to generate.