Avoid mixed content warnings by letting Libravatar detect HTTPS connection.
[phorkie.git] / src / phorkie / SetupCheck.php
index 62bbf19c54f3392650815849125f5b0d8d8f0d4f..53e4fd036d739552c84c4ce8e3fe5e317ed1268f 100644 (file)
@@ -55,9 +55,12 @@ class SetupCheck
             }
         }
 
-        $markdown = stream_resolve_include_path('markdown.php');
-        if ($markdown === false) {
-            $this->fail('Markdown renderer not available');
+        if (!class_exists('\\Michelf\\Markdown', true)) {
+            //PEAR-installed version 1.0.2 has a different API
+            $markdown = stream_resolve_include_path('markdown.php');
+            if ($markdown === false) {
+                $this->fail('Markdown renderer not available');
+            }
         }
     }