diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 5e322d839acae5fcdec9d4f1d57ed7350d045e57..70e595f82f3d60a88ed7fd3ac964878c7077d94b 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -305,6 +305,8 @@ class Doku_Renderer_xhtml extends Doku_Renderer { * @author Andreas Gohr <andi@splitbrain.org> */ function php($text) { + global $conf; + if($conf['phpok']){ ob_start(); eval($text); @@ -325,6 +327,8 @@ class Doku_Renderer_xhtml extends Doku_Renderer { * @author Andreas Gohr <andi@splitbrain.org> */ function html($text) { + global $conf; + if($conf['htmlok']){ $this->doc .= $text; } else {