From df17d804e9f47966c595aedf3e1095f604d068fa Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 28 Sep 2012 23:27:31 +0200 Subject: Fix bug #24: verify geshi installation, Fix bug #25: setupcheck: verify markdown --- src/phorkie/SetupCheck.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') 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() -- cgit v1.2.3