Correcting path that CakeSchema looks for schema files in.

This commit is contained in:
mark_story 2009-08-01 17:50:03 -04:00
parent b2ac7661b3
commit 3aa6d22c2c

View file

@ -90,7 +90,7 @@ class CakeSchema extends Object {
}
if (empty($options['path'])) {
$this->path = CONFIGS . 'sql';
$this->path = CONFIGS . 'schema';
}
$options = array_merge(get_object_vars($this), $options);
@ -161,6 +161,7 @@ class CakeSchema extends Object {
extract(get_object_vars($this));
$class = $name .'Schema';
if (!class_exists($class)) {
if (file_exists($path . DS . $file) && is_file($path . DS . $file)) {
require_once($path . DS . $file);