From 439ccdf41805565c23a3b5ddbea983e687c16843 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 3 Jul 2017 08:41:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8B=BC=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lang/zh-cn.php | 2 +- library/think/Db.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/zh-cn.php b/lang/zh-cn.php index c6c5a50f..6e89f01a 100644 --- a/lang/zh-cn.php +++ b/lang/zh-cn.php @@ -33,7 +33,7 @@ return [ 'illegal action name' => '非法的操作名称', 'url suffix deny' => '禁止的URL后缀访问', 'Route Not Found' => '当前访问路由未定义', - 'Underfined db type' => '未定义数据库类型', + 'Undefined db type' => '未定义数据库类型', 'variable type error' => '变量类型错误', 'PSR-4 error' => 'PSR-4 规范错误', 'not support total' => '简洁模式下不能获取数据总数', diff --git a/library/think/Db.php b/library/think/Db.php index 3e613f7a..e239fd4e 100644 --- a/library/think/Db.php +++ b/library/think/Db.php @@ -74,7 +74,7 @@ class Db // 解析连接参数 支持数组和字符串 $options = self::parseConfig($config); if (empty($options['type'])) { - throw new \InvalidArgumentException('Underfined db type'); + throw new \InvalidArgumentException('Undefined db type'); } $class = false !== strpos($options['type'], '\\') ? $options['type'] : '\\think\\db\\connector\\' . ucwords($options['type']); // 记录初始化信息