From: Justin J. Novack Date: Thu, 13 Sep 2012 20:51:39 +0000 (+0200) Subject: Moved GeSHi location variable to config.default.php X-Git-Tag: v0.3.0~48 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/2b6643574b2a0e527aea359a240018577d861275 Moved GeSHi location variable to config.default.php --- diff --git a/data/config.default.php b/data/config.default.php index bd41d0d..8fb27a9 100644 --- a/data/config.default.php +++ b/data/config.default.php @@ -9,6 +9,7 @@ $GLOBALS['phorkie']['cfg'] = array( 'topbar' => '', 'setupcheck' => true, 'elasticsearch' => null, + 'geshi' => 'MediaWiki/geshi/geshi/geshi.php' ); $GLOBALS['phorkie']['tools'] = array( '\\phorkie\\Tool_Xmllint' => true, diff --git a/src/phorkie/Renderer/Geshi.php b/src/phorkie/Renderer/Geshi.php index 1fc633e..2010ead 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);