equal
deleted
inserted
replaced
148 { |
148 { |
149 $d=getcwd(); |
149 $d=getcwd(); |
150 chdir(ENANO_ROOT); |
150 chdir(ENANO_ROOT); |
151 |
151 |
152 $class = 'Text_Wiki_' . $parser; |
152 $class = 'Text_Wiki_' . $parser; |
153 $c2 = '._includes_wikiengine_' . $parser; |
153 $c2 = $parser; |
154 $file = str_replace('_', '/', $c2).'.php'; |
154 $file = ENANO_ROOT . '/includes/wikiengine/' . str_replace('_', '/', $c2).'.php'; |
155 if (!class_exists($class)) { |
155 if (!class_exists($class)) { |
156 $fp = @fopen($file, 'r', true); |
156 $fp = @fopen($file, 'r', true); |
157 if ($fp === false) { |
157 if ($fp === false) { |
158 die_semicritical('Wiki formatting engine error', '<p>Could not find file '.$file.' in include_path</p>'); |
158 die_semicritical('Wiki formatting engine error', '<p>Could not find file '.$file.' in include_path</p>'); |
159 } |
159 } |