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 3762457214a603a08c391e624ac0839776c83b15..62bbf19c54f3392650815849125f5b0d8d8f0d4f 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');