Skip to content
Snippets Groups Projects
Unverified Commit 8a005008 authored by Andreas Gohr's avatar Andreas Gohr Committed by GitHub
Browse files

Merge pull request #2312 from splitbrain/seceditfallback

fallback for new section editing. fixes #2311
parents 5ae261c2 ac025fdf
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment