Fix previous commit by only searching for Model_*
This commit is contained in:
parent
31b9d9b3e5
commit
6c5366d366
@ -515,7 +515,7 @@ class Kohana_Core {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Enable finding a default Model
|
// Enable finding a default Model
|
||||||
if ($path = Kohana::find_file($directory,'Model/DEFAULT')) {
|
if (preg_match('/^Model_/',$class) AND $path = Kohana::find_file($directory,'Model/DEFAULT')) {
|
||||||
// Load the class file
|
// Load the class file
|
||||||
require $path;
|
require $path;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user