Permalink
Browse files

fix a warning when syntax_plugin="html"

  • Loading branch information...
peterdd committed Feb 10, 2018
1 parent 8270241 commit 34c9810fa786a24ae0b5b8a051dfd1ec2ff9a756
Showing with 5 additions and 3 deletions.
  1. +5 −3 includes/class.tpl.php
@@ -873,10 +873,12 @@ public static function render($text, $type = null, $id = null, $instructions = n
$text, $type, $id, $instructions);
} else {
$text=strip_tags($text, '<br><br/><p><h2><h3><h4><h5><h5><h6><blockquote><a><img><u><b><strong><s><ins><del><ul><ol><li><table><caption><tr><col><colgroup><td><th><thead><tfoot><tbody><code>');
if ($conf['general']['syntax_plugin'] && $conf['general']['syntax_plugin'] != 'none') {
$text='Missing output plugin '.$conf['general']['syntax_plugin'].'!'
if ( $conf['general']['syntax_plugin']
&& $conf['general']['syntax_plugin'] != 'none'
&& $conf['general']['syntax_plugin'] != 'html') {
$text='Unsupported output plugin '.$conf['general']['syntax_plugin'].'!'
.'<br/>Couldn\'t call '.$conf['general']['syntax_plugin'].'_TextFormatter::render()'
.'<br/>Temporarily handled like it is HTML until fixed<br/>'
.'<br/>Temporarily handled like it is HTML until fixed.<br/>'
.$text;
}

0 comments on commit 34c9810

Please sign in to comment.