aboutsummaryrefslogtreecommitdiff
path: root/src/phorkie/SetupCheck.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-09-28 23:27:31 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-09-28 23:27:31 +0200
commitdf17d804e9f47966c595aedf3e1095f604d068fa (patch)
tree14c177ff0c17d5820304cbdcb6960a8cc2678446 /src/phorkie/SetupCheck.php
parentf134f66cc1ccf2ca0365af67dde5f0ca4f52347d (diff)
downloadphorkie-df17d804e9f47966c595aedf3e1095f604d068fa.tar.gz
phorkie-df17d804e9f47966c595aedf3e1095f604d068fa.zip
Fix bug #24: verify geshi installation, Fix bug #25: setupcheck: verify markdown
Diffstat (limited to 'src/phorkie/SetupCheck.php')
-rw-r--r--src/phorkie/SetupCheck.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/phorkie/SetupCheck.php b/src/phorkie/SetupCheck.php
index 93ec3ef..0affe05 100644
--- a/src/phorkie/SetupCheck.php
+++ b/src/phorkie/SetupCheck.php
@@ -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()