* code for task#1670.

This commit is contained in:
azhi
2013-08-06 17:09:23 +08:00
parent fb7fb60ac7
commit b77e1b16da
22 changed files with 375 additions and 237 deletions

View File

@@ -118,6 +118,20 @@ class commonModel extends model
}
}
/**
* Load custom lang from db.
*
* @access public
* @return void
*/
public function loadCustomFromDB()
{
if(!$this->config->db->name) return;
$records = $this->loadModel('custom')->getAll();
if(!$records) return;
$this->lang->db->custom = $records;
}
/**
* Juage a method of one module is open or not?
*