改进默认语言的设置 修正默认语言包的加载问题

This commit is contained in:
thinkphp
2016-09-28 11:32:32 +08:00
parent e2335946cc
commit 3aa7e463dd
3 changed files with 13 additions and 16 deletions

View File

@@ -203,10 +203,6 @@ class Handle
if (IS_CLI) {
return $message;
}
// 导入语言包
if (!Config::get('lang_switch_on')) {
Lang::load(THINK_PATH . 'lang' . DS . Lang::detect() . EXT);
}
if (strpos($message, ':')) {
$name = strstr($message, ':', true);