Skip to content

Commit

Permalink
Merge pull request #1 from milosz/patch-2
Browse files Browse the repository at this point in the history
Update for DokuWiki Greebo
  • Loading branch information
kepi authored Mar 13, 2021
2 parents 9bb4724 + 09e3a97 commit 820b397
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
}
}

0 comments on commit 820b397

Please sign in to comment.