move load method to top
[phorkie.git] / src / phorkie / SetupCheck.php
index 8c09519f8cf6fee0c9d4081a936ecde9d348c076..0affe05caec281d960e4fa093a8ba23b4e592390 100644 (file)
@@ -8,6 +8,7 @@ class SetupCheck
         'pear.twig-project.org/Twig'       => 'Twig_Autoloader',
         'pear.php.net/Date_HumanDiff'      => 'Date_HumanDiff',
         'pear.php.net/HTTP_Request2'       => 'HTTP_Request2',
+        'pear.php.net/OpenID'              => 'OpenID',
         'pear.php.net/Pager'               => 'Pager',
         'pear.php.net/Services_Libravatar' => 'Services_Libravatar',
         'zustellzentrum.cweiske.de/MIME_Type_PlainDetect' => 'MIME_Type_PlainDetect',
@@ -42,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()
@@ -74,7 +87,7 @@ class SetupCheck
 
     public function checkDatabase()
     {
-        if ($this->elasticsearch != '') {
+        if ($this->elasticsearch == '') {
             return;
         }