Browse Source

normalize class name.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
fc415b154c
  1. 6
      framework/YiiBase.php

6
framework/YiiBase.php

@ -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) {

Loading…
Cancel
Save