Merging fix from [3912]

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3913 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2006-11-22 21:32:59 +00:00
parent ca5f7d952c
commit ac552a256e

View file

@ -62,11 +62,13 @@
}
Overloadable::overload('AppModel');
}
$loadedModels = array();
foreach($path->modelPaths as $path) {
foreach(listClasses($path)as $model_fn) {
if (!key_exists($model_fn, $loadedModels)) {
list($name) = explode('.', $model_fn);
$className = Inflector::camelize($name);
if (!class_exists($className)) {
require($path . $model_fn);
list($name) = explode('.', $model_fn);
Overloadable::overload(Inflector::camelize($name));