Skip to content

Commit

Permalink
fix: adjust to new startSectionEdit signature
Browse files Browse the repository at this point in the history
The signature of startSectionEdit was changed in dokuwiki/dokuwiki#2220
in a non backwards compatible way. This adjusts for that change in a way
that should still work for pre-Greebo versions.
  • Loading branch information
micgro42 committed Apr 9, 2018
1 parent b4be4ae commit 59b7c2b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion syntax/entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,13 @@ function _showData($data, $R) {
global $ID;
$ret = '';

$data['classes'] .= ' ' . $R->startSectionEdit($data['pos'], 'plugin_data');
$sectionEditData = ['target' => 'plugin_data'];
if (!defined('SEC_EDIT_PATTERN')) {
// backwards-compatibility for Frusterick Manners (2017-02-19)
$sectionEditData = 'plugin_data';
}
$data['classes'] .= ' ' . $R->startSectionEdit($data['pos'], $sectionEditData);

$ret .= '<div class="inline dataplugin_entry ' . $data['classes'] . '"><dl>';
$class_names = array();
foreach($data['data'] as $key => $val) {
Expand Down

0 comments on commit 59b7c2b

Please sign in to comment.