diff --git a/system/classes/Kohana/Core.php b/system/classes/Kohana/Core.php index 791c114..eea33ad 100644 --- a/system/classes/Kohana/Core.php +++ b/system/classes/Kohana/Core.php @@ -515,7 +515,7 @@ class Kohana_Core { } // 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 require $path;