From eed8bfb12dc9ab1163c2708faa972d64807a83ad Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 27 Oct 2016 14:18:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BConfig=E7=B1=BBload=E6=96=B9?= =?UTF-8?q?=E6=B3=95=20=E4=B8=80=E7=BA=A7=E9=85=8D=E7=BD=AE=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E5=BC=BA=E5=88=B6=E8=BD=AC=E4=B8=BA=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Config.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/Config.php b/library/think/Config.php index d7c3dc56..fb5340d8 100644 --- a/library/think/Config.php +++ b/library/think/Config.php @@ -59,6 +59,7 @@ class Config self::$config[$range] = []; } if (is_file($file)) { + $name = strtolower($name); $type = pathinfo($file, PATHINFO_EXTENSION); if ('php' == $type) { return self::set(include $file, $name, $range);