Config类load方法调整 必须给出完整路径

This commit is contained in:
thinkphp
2016-01-20 20:36:40 +08:00
parent b38d71e344
commit 411df30e57
3 changed files with 5 additions and 6 deletions

View File

@@ -55,7 +55,6 @@ class Config
public static function load($file, $name = '', $range = '')
{
$range = $range ?: self::$range;
$file = strpos($file, '.') ? $file : APP_PATH . $file . EXT;
if (!isset(self::$config[$range])) {
self::$config[$range] = [];
}