ensure apidoc works with relative paths

This commit is contained in:
Carsten Brandt
2014-11-17 22:34:37 +01:00
parent a92a4179e4
commit b809f93b69
2 changed files with 13 additions and 7 deletions

View File

@@ -51,11 +51,11 @@ class ApiController extends BaseController
} else {
$guideUrl = './';
$renderer->guideUrl = $targetDir;
}
if (file_exists($renderer->generateGuideUrl('README.md'))) {
$renderer->guideUrl = $guideUrl;
} else {
$renderer->guideUrl = null;
if (file_exists($renderer->generateGuideUrl('README.md'))) {
$renderer->guideUrl = $guideUrl;
} else {
$renderer->guideUrl = null;
}
}
// search for files to process