From 827aa459d4a7a774c641a36d038e780929301880 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 25 Feb 2015 09:49:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=8F=82=E6=95=B0prefix=E6=97=A0=E6=95=88?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/model.php b/library/think/model.php index e84691ea..243f7474 100644 --- a/library/think/model.php +++ b/library/think/model.php @@ -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'];