diff --git a/framework/yii/YiiBase.php b/framework/yii/YiiBase.php index 6384023..5e003fc 100644 --- a/framework/yii/YiiBase.php +++ b/framework/yii/YiiBase.php @@ -156,6 +156,9 @@ class YiiBase foreach ($namespaces as $name => $path) { if ($name !== '') { $name = trim(strtr($name, array('\\' => '/', '_' => '/')), '/'); + if (is_array($path)) { + $path = reset($path); + } static::setAlias('@' . $name, rtrim($path, '/\\') . '/' . $name); } }