修正数据库配置参数prefix无效的问题

This commit is contained in:
thinkphp
2015-02-25 09:49:31 +08:00
parent 78bd79bb6c
commit 827aa459d4

View File

@@ -69,8 +69,8 @@ class Model {
list($this->dbName,$this->name) = explode('.',$this->name);
}
if(isset($config['table_prefix'])) {
$this->tablePrefix = $config['table_prefix'];
if(isset($config['prefix'])) {
$this->tablePrefix = $config['prefix'];
}
if(isset($config['connection'])) {
$this->connection = $config['connection'];