From 45d105cec061ed8db2c40970ee47f32502c649a0 Mon Sep 17 00:00:00 2001 From: Heyu Date: Fri, 9 Jun 2017 12:08:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AEextra?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E4=B8=B4=E6=97=B6=E6=96=87=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E4=B8=AD=E5=90=ABCONF=5FEXT(=E5=A6=82=20vi=20=E7=9A=84=20.swp?= =?UTF-8?q?=20=E6=96=87=E4=BB=B6)=E8=A2=AB=E9=94=99=E8=AF=AF=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E5=AF=BC=E8=87=B4=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= 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 f6ed5fdf..6f2d7558 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 (strpos($file, CONF_EXT)) { + if (pathinfo($file, PATHINFO_EXTENSION) === CONF_EXT) { $filename = $dir . DS . $file; Config::load($filename, pathinfo($file, PATHINFO_FILENAME)); }