Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #2312 from splitbrain/seceditfallback
fallback for new section editing. fixes #2311
  • Loading branch information
splitbrain committed Apr 15, 2018
2 parents 5ae261c + ac025fd commit 8a00500
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions inc/parser/xhtml.php
Expand Up @@ -77,8 +77,19 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
*/
public function startSectionEdit($start, $data) {
if (!is_array($data)) {
msg('startSectionEdit: $data is NOT an array!', -1);
return '';
msg(
sprintf(
'startSectionEdit: $data "%s" is NOT an array! One of your plugins needs an update.',
hsc((string) $data)
), -1
);

// @deprecated 2018-04-14, backward compatibility
$args = func_get_args();
$data = array();
if(isset($args[1])) $data['target'] = $args[1];
if(isset($args[2])) $data['name'] = $args[2];
if(isset($args[3])) $data['hid'] = $args[3];
}
$data['secid'] = ++$this->lastsecid;
$data['start'] = $start;
Expand Down

0 comments on commit 8a00500

Please sign in to comment.