Skip to content

Commit

Permalink
Update for DokuWiki Greebo
Browse files Browse the repository at this point in the history
Needs update as it does not work with recent version.
  • Loading branch information
milosz committed Apr 24, 2018
1 parent 9bb4724 commit 09e3a97
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion syntax.php
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 09e3a97

Please sign in to comment.