Merge branch 'master' of git@github.com:easysoft/zentaopms

This commit is contained in:
azhi
2013-08-08 09:57:35 +08:00
3 changed files with 3 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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&section=$field");
$this->view->dbFields = $this->custom->getItems("lang=$currentLang,all&module=$module&section=$field");
$this->view->field = $field;
$this->view->module = $module;
$this->view->currentLang = $currentLang;

View File

@@ -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)
{