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
$baseUrl = 'https://github.com/yiisoft/yii2/blob/master';
switch ($this->getTypeCategory($type)) {
case 'yii':
if ($type->name == 'Yii') {
$url = '/framework/Yii.php';
} else {
$url = '/framework/' . str_replace('\\', '/', substr($type->name, 4)) . '.php';
}
break;
case 'app':
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