From 9a53fc7934010f75c457ec090d82df184cb75839 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 12 Jun 2017 11:04:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=AF=BB=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/App.php b/library/think/App.php index 6f2d7558..b7d59691 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -492,7 +492,7 @@ class App $dir = CONF_PATH . $module . 'extra'; $files = scandir($dir); foreach ($files as $file) { - if (pathinfo($file, PATHINFO_EXTENSION) === CONF_EXT) { + if ('.' . pathinfo($file, PATHINFO_EXTENSION) === CONF_EXT) { $filename = $dir . DS . $file; Config::load($filename, pathinfo($file, PATHINFO_FILENAME)); }