Fix bug #24: verify geshi installation, Fix bug #25: setupcheck: verify markdown
authorChristian Weiske <cweiske@cweiske.de>
Fri, 28 Sep 2012 21:27:31 +0000 (23:27 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 28 Sep 2012 21:27:31 +0000 (23:27 +0200)
ChangeLog
src/phorkie/SetupCheck.php

index 16b0774..3cd4ba3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
-2012-09-28  Christian Weiske  <cweiske@bogo>
+2012-09-28  Christian Weiske  <cweiske@cweiske.de>
 
        * Check for OpenID package in SetupCheck
+       * Fix bug #24: setupcheck: verify geshi installation
+       * Fix bug #25: setupcheck: verify markdown
 
 2012-09-28  Christian Weiske  <cweiske@cweiske.de>
 
index 93ec3ef..0affe05 100644 (file)
@@ -43,6 +43,18 @@ class SetupCheck
                 $this->fail('PEAR package not installed: ' . $package);
             }
         }
+
+        $geshi = stream_resolve_include_path(
+            $GLOBALS['phorkie']['cfg']['geshi']
+        );
+        if ($geshi === false) {
+            $this->fail('GeSHi not available');
+        }
+
+        $markdown = stream_resolve_include_path('markdown.php');
+        if ($markdown === false) {
+            $this->fail('Markdown renderer not available');
+        }
     }
 
     public function checkDirs()