From 928a715daa9e74324c60722a0fb8990dca68cdd5 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Fri, 18 May 2007 01:42:28 +0200 Subject: deleted unnecessary htmlok+phpok checks darcs-hash:20070517234228-d5083-9a00c354c88dc59ca314ae31baebc612e6577174.gz --- inc/parser/xhtml.php | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'inc/parser') diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 827666ef4..3a1eef3e7 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -336,15 +336,10 @@ class Doku_Renderer_xhtml extends Doku_Renderer { * @author Andreas Gohr */ function php($text) { - global $conf; - if($conf['phpok']){ - ob_start(); - eval($text); - $this->doc .= ob_get_contents(); - ob_end_clean(); - }else{ - $this->file($text); - } + ob_start(); + eval($text); + $this->doc .= ob_get_contents(); + ob_end_clean(); } function phpblock($text) { @@ -357,12 +352,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer { * @author Andreas Gohr */ function html($text) { - global $conf; - if($conf['htmlok']){ - $this->doc .= $text; - }else{ - $this->file($text); - } + $this->doc .= $text; } function htmlblock($text) { -- cgit v1.2.3