X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/d80854dc9a670e0ee996cc89a59af2c5f8521205..43b23197ffc3e1d08a1e08b09dbb31f06692d7ff:/src/phorkie/Renderer/Geshi.php diff --git a/src/phorkie/Renderer/Geshi.php b/src/phorkie/Renderer/Geshi.php index 9cb15a2..0c545ed 100644 --- a/src/phorkie/Renderer/Geshi.php +++ b/src/phorkie/Renderer/Geshi.php @@ -13,10 +13,14 @@ class Renderer_Geshi */ public function toHtml(File $file, Tool_Result $res = null) { - if (!class_exists('\\GeSHi', true)) { - require_once 'geshi.php'; + /** + * Yes, geshi needs to be in your include path + * We use the geshi pear package. + */ + if (!class_exists('\\geshi', true)) { + require_once $GLOBALS['phorkie']['cfg']['geshi']; } - $geshi = new \GeSHi($file->getContent(), $this->getType($file)); + $geshi = new \geshi($file->getContent(), $this->getType($file)); $geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS); $geshi->set_header_type(GESHI_HEADER_DIV);