fixes Yii source path

fixes #3551
This commit is contained in:
Carsten Brandt
2014-05-23 13:18:29 +02:00
parent 020960380b
commit e1b4777021

View File

@@ -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':
$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;
case 'app':
return null;