diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/phorkie/SetupCheck.php | 12 |
1 files changed, 7 insertions, 5 deletions
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'); |
