Skip to content

Commit

Permalink
Correcting path that CakeSchema looks for schema files in.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 1, 2009
1 parent b2ac766 commit 3aa6d22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cake/libs/model/cake_schema.php
Expand Up @@ -90,7 +90,7 @@ function __construct($options = array()) {
}

if (empty($options['path'])) {
$this->path = CONFIGS . 'sql';
$this->path = CONFIGS . 'schema';
}

$options = array_merge(get_object_vars($this), $options);
Expand Down Expand Up @@ -161,6 +161,7 @@ function load($options = array()) {
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);
Expand Down

0 comments on commit 3aa6d22

Please sign in to comment.