mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-29 13:57:50 +08:00
ensure apidoc works with relative paths
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user