From 50e1018ba0749becdc3e05e9438176a475b70fed Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 15 May 2014 18:20:19 +0200 Subject: [PATCH] update geshi setup check --- src/phorkie/SetupCheck.php | 12 +++++++----- 1 file 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'); -- 2.30.2