From b97c6356271164ef148346a44ea33e293978068f Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 15 Jun 2016 17:24:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8A=A0=E8=BD=BD=E4=B8=A5?= =?UTF-8?q?=E6=A0=BC=E5=8C=BA=E5=88=86=E5=A4=A7=E5=B0=8F=E5=86=99=20?= =?UTF-8?q?=E5=8D=B3=E4=BD=BF=E6=98=AF=E9=9D=9E=E8=B0=83=E8=AF=95=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Loader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Loader.php b/library/think/Loader.php index 3453d714..a5c38032 100644 --- a/library/think/Loader.php +++ b/library/think/Loader.php @@ -79,7 +79,7 @@ class Loader $filename = $path . str_replace('\\', DS, $class) . EXT; if (is_file($filename)) { // 开启调试模式Win环境严格区分大小写 - if (App::$debug && IS_WIN && false === strpos(realpath($filename), $class . EXT)) { + if (IS_WIN && false === strpos(realpath($filename), $class . EXT)) { return false; } include $filename; @@ -254,7 +254,7 @@ class Loader $filename = $baseUrl . $class . $ext; if (is_file($filename)) { // 开启调试模式Win环境严格区分大小写 - if (App::$debug && IS_WIN && false === strpos(realpath($filename), $class . $ext)) { + if (IS_WIN && false === strpos(realpath($filename), $class . $ext)) { return false; } include $filename;