mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
BUGFIX Absolute include paths so phpunit executable doesnt barf
This commit is contained in:
parent
5d48bc97de
commit
b61e4e9057
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user