Commit e1b47770 by Carsten Brandt

fixes Yii source path

fixes #3551
parent 02096038
...@@ -100,7 +100,11 @@ class ApiRenderer extends \yii\apidoc\templates\html\ApiRenderer ...@@ -100,7 +100,11 @@ class ApiRenderer extends \yii\apidoc\templates\html\ApiRenderer
$baseUrl = 'https://github.com/yiisoft/yii2/blob/master'; $baseUrl = 'https://github.com/yiisoft/yii2/blob/master';
switch ($this->getTypeCategory($type)) { switch ($this->getTypeCategory($type)) {
case 'yii': case 'yii':
$url = '/framework/' . str_replace('\\', '/', substr($type->name, 4)) . '.php'; if ($type->name == 'Yii') {
$url = '/framework/Yii.php';
} else {
$url = '/framework/' . str_replace('\\', '/', substr($type->name, 4)) . '.php';
}
break; break;
case 'app': case 'app':
return null; return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment