mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 13:58:24 +08:00
bug fix.
This commit is contained in:
@@ -238,7 +238,7 @@ class YiiBase
|
||||
{
|
||||
if ($path === null) {
|
||||
unset(self::$aliases[$alias]);
|
||||
} elseif ($path[0] !== '@') {
|
||||
} elseif (strncmp($path, '@', 1)) {
|
||||
self::$aliases[$alias] = rtrim($path, '\\/');
|
||||
} else {
|
||||
self::$aliases[$alias] = static::getAlias($path);
|
||||
|
||||
Reference in New Issue
Block a user