Commit fc415b15 by Qiang Xue

normalize class name.

parent c146d6c5
...@@ -371,8 +371,10 @@ class YiiBase ...@@ -371,8 +371,10 @@ class YiiBase
$class = static::import($class, true); $class = static::import($class, true);
} }
if (isset(self::$objectConfig[ltrim($class, '\\')])) { $class = ltrim($class, '\\');
$config = array_merge(self::$objectConfig[ltrim($class, '\\')], $config);
if (isset(self::$objectConfig[$class])) {
$config = array_merge(self::$objectConfig[$class], $config);
} }
if (($n = func_num_args()) > 1) { if (($n = func_num_args()) > 1) {
......
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