Browse Source

bug fix.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
7d27d65a13
  1. 2
      framework/YiiBase.php

2
framework/YiiBase.php

@ -238,7 +238,7 @@ class YiiBase
{ {
if ($path === null) { if ($path === null) {
unset(self::$aliases[$alias]); unset(self::$aliases[$alias]);
} elseif ($path[0] !== '@') { } elseif (strncmp($path, '@', 1)) {
self::$aliases[$alias] = rtrim($path, '\\/'); self::$aliases[$alias] = rtrim($path, '\\/');
} else { } else {
self::$aliases[$alias] = static::getAlias($path); self::$aliases[$alias] = static::getAlias($path);

Loading…
Cancel
Save