update geshi setup check
authorChristian Weiske <cweiske@cweiske.de>
Thu, 15 May 2014 16:20:19 +0000 (18:20 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 15 May 2014 16:20:19 +0000 (18:20 +0200)
src/phorkie/SetupCheck.php

index 3762457..62bbf19 100644 (file)
@@ -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');