mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
ca5f7d952c
commit
ac552a256e
1 changed files with 4 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue