From b1c3fe5e9c11247fab67b489a2e1baef0b3cd5f7 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 23 Nov 2015 22:14:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E7=B1=BB=E4=B9=9F=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E4=BB=BB=E6=84=8F=E7=BA=A7=E5=88=AB=E6=94=BE=E7=BD=AE?= =?UTF-8?q?=E5=92=8C=E5=AE=9E=E4=BE=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/loader.php b/library/think/loader.php index 44f0d783..e2525512 100644 --- a/library/think/loader.php +++ b/library/think/loader.php @@ -153,7 +153,7 @@ class Loader } else { $module = MODULE_NAME; } - $class = $module . '\\' . $layer . '\\' . self::parseName($name, 1); + $class = $module . '\\' . $layer . '\\' . self::parseName(str_replace('.', '\\', $name), 1); if (class_exists($class)) { $model = new $class($name); } else {