From 99951426edbbd43d718d0fcb8a0d240a7f757b4f Mon Sep 17 00:00:00 2001 From: Marcus Nyeholt Date: Mon, 25 Jul 2011 14:34:30 +1000 Subject: [PATCH] BUGFIX: Change the doc folder search to use the correct folder name variable. BUGFIX: Use the full path to the basefolder when searching for folders; cwd is actually sapphire, so this ends up looking in the wrong path otherwise --- code/DocumentationService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/DocumentationService.php b/code/DocumentationService.php index 3234309..c21bb43 100755 --- a/code/DocumentationService.php +++ b/code/DocumentationService.php @@ -265,7 +265,7 @@ class DocumentationService { if($dir && !$ignored) { // check to see if it has docs - $docs = Controller::join_links($dir, 'docs'); + $docs = Director::baseFolder() . '/' . Controller::join_links($entity, 'docs'); if(is_dir($docs)) { self::register($entity, $docs, '', $entity, true);