Merge branch 'master' of git@github.com:easysoft/zentaopms
This commit is contained in:
@@ -129,6 +129,7 @@ class commonModel extends model
|
||||
if(!$this->config->db->name) return;
|
||||
$records = $this->loadModel('custom')->getAll();
|
||||
if(!$records) return;
|
||||
$this->lang->db = new stdclass();
|
||||
$this->lang->db->custom = $records;
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ class custom extends control
|
||||
$this->view->position[] = $this->lang->custom->common;
|
||||
$this->view->position[] = $this->lang->custom->$module;
|
||||
$this->view->fieldList = $fieldList;
|
||||
$this->view->dbFields = $this->custom->getItems("module=$module§ion=$field");
|
||||
$this->view->dbFields = $this->custom->getItems("lang=$currentLang,all&module=$module§ion=$field");
|
||||
$this->view->field = $field;
|
||||
$this->view->module = $module;
|
||||
$this->view->currentLang = $currentLang;
|
||||
|
||||
@@ -57,6 +57,7 @@ class webapp extends control
|
||||
if($type == 'bysearch') $param = helper::safe64Encode($this->post->key);
|
||||
|
||||
/* Get results from the api. */
|
||||
$recPerPage = $this->cookie->pagerWebappObtain ? $this->cookie->pagerWebappObtain : $recPerPage;
|
||||
$results = $this->webapp->getAppsByAPI($type, $param, $recTotal, $recPerPage, $pageID);
|
||||
if($results)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user