From b61e4e90573ffcfd4d2ea72978dc7458ddf8e156 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 17 Jan 2011 06:00:16 +0000 Subject: [PATCH] BUGFIX Absolute include paths so phpunit executable doesnt barf --- code/DocumentationParser.php | 2 +- code/tasks/RebuildLuceneDocsIndex.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/DocumentationParser.php b/code/DocumentationParser.php index 53c34f4..249448b 100644 --- a/code/DocumentationParser.php +++ b/code/DocumentationParser.php @@ -43,7 +43,7 @@ class DocumentationParser { $md = self::rewrite_heading_anchors($md, $page); $md = self::rewrite_code_blocks($md, $page); - require_once('../sapphiredocs/thirdparty/markdown/markdown.php'); + require_once(BASE_PATH . '/sapphiredocs/thirdparty/markdown/markdown.php'); $html = Markdown($md); return $html; diff --git a/code/tasks/RebuildLuceneDocsIndex.php b/code/tasks/RebuildLuceneDocsIndex.php index d1b8572..d15d8e8 100644 --- a/code/tasks/RebuildLuceneDocsIndex.php +++ b/code/tasks/RebuildLuceneDocsIndex.php @@ -20,7 +20,7 @@ class RebuildLuceneDocsIndex extends BuildTask { } function rebuildIndexes($quiet = false) { - require_once('../sapphiredocs/thirdparty/markdown/markdown.php'); + require_once(BASE_PATH . '/sapphiredocs/thirdparty/markdown/markdown.php'); ini_set("memory_limit", -1); ini_set('max_execution_time', 0);