GIT.Harvie.CZ
/
mirrors
/
DokuWiki-Plugin-SVGEdit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix method signatures for PHP 7.0 compatibility
[mirrors/DokuWiki-Plugin-SVGEdit.git]
/
action.php
diff --git
a/action.php
b/action.php
index f1a722db532bbd4f81328e873f55cf74ffea0145..549ee303de482530c2129235d02abe3e54548988 100644
(file)
--- 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'
);
}
'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');
}
$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');
global $ID;
if($event->data === 'export_svg' && auth_quickaclcheck($ID) >= AUTH_READ) {
header('Content-type: image/svg+xml');
This page took
0.087857 seconds
and
4
git commands to generate.