From 35a562605f3f00c149a28fc42c85ab76f28b7497 Mon Sep 17 00:00:00 2001
From: Chris Smith <chris@jalakai.co.uk>
Date: Thu, 14 Feb 2008 12:33:50 +0100
Subject: [PATCH] fix for earlier phpok & htmlok path

darcs-hash:20080214113350-d26fc-3b3e46d9d5423a84c4288a18c1b83f972ca6bfa8.gz
---
 inc/parser/xhtml.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 5e322d839..70e595f82 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 {
-- 
GitLab