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
This commit is contained in:
Marcus Nyeholt 2011-07-25 14:34:30 +10:00
parent 035df99088
commit 99951426ed

View File

@ -265,7 +265,7 @@ class DocumentationService {
if($dir && !$ignored) { if($dir && !$ignored) {
// check to see if it has docs // 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)) { if(is_dir($docs)) {
self::register($entity, $docs, '', $entity, true); self::register($entity, $docs, '', $entity, true);