diff --git a/Doctrine.php b/Doctrine.php index a4c0450f7..20bf05439 100644 --- a/Doctrine.php +++ b/Doctrine.php @@ -225,8 +225,9 @@ final class Doctrine { public static function loadAll() { if(! self::$path) self::$path = dirname(__FILE__); - - $dir = dir(self::$path); + + $path = self::$path.DIRECTORY_SEPARATOR."Doctrine"; + $dir = dir($path); $a = array(); while (false !== ($entry = $dir->read())) { switch($entry): @@ -243,11 +244,11 @@ final class Doctrine { case "DQL": case "Sensei": case "Iterator": - $a[] = self::$path.DIRECTORY_SEPARATOR.$entry; + $a[] = $path.DIRECTORY_SEPARATOR.$entry; break; default: - if(is_file(self::$path.DIRECTORY_SEPARATOR.$entry) && substr($entry,-4) == ".php") { - require_once($entry); + if(is_file($path.DIRECTORY_SEPARATOR.$entry) && substr($entry,-4) == ".php") { + require_once($path.DIRECTORY_SEPARATOR.$entry); } endswitch; } diff --git a/Doctrine/Exception/Naming.class.php b/Doctrine/Exception/Naming.class.php index a26fce4dd..70a691c42 100644 --- a/Doctrine/Exception/Naming.class.php +++ b/Doctrine/Exception/Naming.class.php @@ -1,5 +1,5 @@