diff --git a/syntax.php b/syntax.php index 6b262d1..3b30077 100644 --- a/syntax.php +++ b/syntax.php @@ -72,7 +72,11 @@ function render($format, &$renderer, $data) $format === 'xhtml' && function_exists('html_secedit_get_button') ) { - $renderer->startSectionEdit(-1, 'section', 'dummy'); + if (defined('SEC_EDIT_PATTERN')) { // for DokuWiki Greebo and more recent versions + $renderer->startSectionEdit(-1, array('target' => 'section', 'name' => 'dummy')); + } else { + $renderer->startSectionEdit(-1, 'section', 'dummy'); + } } } }