规范调整

This commit is contained in:
thinkphp
2015-10-03 21:43:48 +08:00
parent 7c2bcbcff2
commit 1cfb3704c6
31 changed files with 393 additions and 285 deletions

View File

@@ -89,8 +89,9 @@ class Loader {
$baseUrl = APP_PATH . $class_strut[0] . '/';
}
}
if (substr($baseUrl, -1) != '/')
if (substr($baseUrl, -1) != '/'){
$baseUrl .= '/';
}
// 如果类存在 则导入类库文件
$filename = $baseUrl . $class . $ext;
if(is_file($filename)) {