* fix a bug for upgrade.

* change zt_custom to zt_lang.
This commit is contained in:
wyd621
2013-08-12 08:56:09 +08:00
parent b26370d6cb
commit ddfa3d8d66
6 changed files with 9 additions and 7 deletions
+1
View File
@@ -126,6 +126,7 @@ class commonModel extends model
*/
public function loadCustomFromDB()
{
if(defined('IN_UPGRADE')) return;
if(!$this->config->db->name) return;
$records = $this->loadModel('custom')->getAll();
if(!$records) return;