mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Correcting path that CakeSchema looks for schema files in.
This commit is contained in:
parent
b2ac7661b3
commit
3aa6d22c2c
1 changed files with 2 additions and 1 deletions
|
@ -90,7 +90,7 @@ class CakeSchema extends Object {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($options['path'])) {
|
if (empty($options['path'])) {
|
||||||
$this->path = CONFIGS . 'sql';
|
$this->path = CONFIGS . 'schema';
|
||||||
}
|
}
|
||||||
|
|
||||||
$options = array_merge(get_object_vars($this), $options);
|
$options = array_merge(get_object_vars($this), $options);
|
||||||
|
@ -161,6 +161,7 @@ class CakeSchema extends Object {
|
||||||
extract(get_object_vars($this));
|
extract(get_object_vars($this));
|
||||||
|
|
||||||
$class = $name .'Schema';
|
$class = $name .'Schema';
|
||||||
|
|
||||||
if (!class_exists($class)) {
|
if (!class_exists($class)) {
|
||||||
if (file_exists($path . DS . $file) && is_file($path . DS . $file)) {
|
if (file_exists($path . DS . $file) && is_file($path . DS . $file)) {
|
||||||
require_once($path . DS . $file);
|
require_once($path . DS . $file);
|
||||||
|
|
Loading…
Reference in a new issue