Skip to content
Snippets Groups Projects
Commit 928a715d authored by Anika Henke's avatar Anika Henke
Browse files

deleted unnecessary htmlok+phpok checks

darcs-hash:20070517234228-d5083-9a00c354c88dc59ca314ae31baebc612e6577174.gz
parent 07f89c3c
No related branches found
No related tags found
No related merge requests found
......@@ -336,15 +336,10 @@ 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);
$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 <andi@splitbrain.org>
*/
function html($text) {
global $conf;
if($conf['htmlok']){
$this->doc .= $text;
}else{
$this->file($text);
}
$this->doc .= $text;
}
function htmlblock($text) {
......
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