From e48fbac66f3458ec88b37c8042daf48744a62ba4 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 21 Jun 2016 00:03:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Config.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/library/think/Config.php b/library/think/Config.php index ba4793ce..330e57f1 100644 --- a/library/think/Config.php +++ b/library/think/Config.php @@ -11,8 +11,6 @@ namespace think; -use think\App; - class Config { // 配置参数 @@ -42,7 +40,7 @@ class Config if (empty($type)) { $type = pathinfo($config, PATHINFO_EXTENSION); } - $class = strpos($type, '\\') ? $type : '\\think\\config\\driver\\' . ucwords($type); + $class = false !== strpos($type, '\\') ? $type : '\\think\\config\\driver\\' . ucwords($type); self::set((new $class())->parse($config), $name, $range); }