修正Model类和Config类

This commit is contained in:
thinkphp
2016-05-13 22:18:24 +08:00
parent aaa0fd7c9f
commit 90b86c684c
2 changed files with 13 additions and 11 deletions

View File

@@ -62,7 +62,7 @@ class Config
APP_DEBUG && Log::record('[ CONFIG ] ' . $file, 'info');
$type = pathinfo($file, PATHINFO_EXTENSION);
if ('php' != $type) {
return self::parse($config, $type, $name, $range);
return self::parse($file, $type, $name, $range);
} else {
return self::set(include $file, $name, $range);
}