From: Christian Weiske Date: Thu, 15 May 2014 16:20:19 +0000 (+0200) Subject: update geshi setup check X-Git-Tag: v0.4.0~40 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/50e1018ba0749becdc3e05e9438176a475b70fed update geshi setup check --- diff --git a/src/phorkie/SetupCheck.php b/src/phorkie/SetupCheck.php index 3762457..62bbf19 100644 --- a/src/phorkie/SetupCheck.php +++ b/src/phorkie/SetupCheck.php @@ -46,11 +46,13 @@ class SetupCheck } } - $geshi = stream_resolve_include_path( - $GLOBALS['phorkie']['cfg']['geshi'] - ); - if ($geshi === false) { - $this->fail('GeSHi not available'); + if (!class_exists('GeSHi', true)) { + $geshi = stream_resolve_include_path( + $GLOBALS['phorkie']['cfg']['geshi'] + ); + if ($geshi === false) { + $this->fail('GeSHi not available'); + } } $markdown = stream_resolve_include_path('markdown.php');