X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/78632066c11c38b7bb154d41257754d440bb5269..38aa0dc6133ff53d20fd9f714eb380809c8dba67:/src/phorkie/Renderer/Geshi.php diff --git a/src/phorkie/Renderer/Geshi.php b/src/phorkie/Renderer/Geshi.php index 1fc633e..21d36c2 100644 --- a/src/phorkie/Renderer/Geshi.php +++ b/src/phorkie/Renderer/Geshi.php @@ -17,7 +17,7 @@ class Renderer_Geshi * Yes, geshi needs to be in your include path * We use the mediawiki geshi extension package. */ - require_once 'MediaWiki/geshi/geshi/geshi.php'; + require_once $GLOBALS['phorkie']['cfg']['geshi']; $geshi = new \GeSHi($file->getContent(), $this->getType($file)); $geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS); $geshi->set_header_type(GESHI_HEADER_DIV); @@ -28,7 +28,7 @@ class Renderer_Geshi } return '
' - . $geshi->parse_code() + . str_replace(' ', ' ', $geshi->parse_code()) . '
'; }