Commit bf6ba64e authored by Anna Dabrowska's avatar Anna Dabrowska

Dummy doc should be the same type as the original

Compatibility with different renderers, e.g. qc plugin uses an array
parent 9dee6955
......@@ -98,7 +98,7 @@ class syntax_plugin_ifauthex extends DokuWiki_Syntax_Plugin
if(!$shouldRender) {
// point the renderer's doc to something else, remembering the old one
$renderer->meta['ifauthex.originalDoc'] = &$renderer->doc;
$ignoredDoc = '';
$ignoredDoc = is_array($renderer->doc) ? [] : '';
$renderer->doc = &$ignoredDoc;
// do the same for the toc list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment