adjust code.
This commit is contained in:
@@ -33,11 +33,8 @@ class datatable extends control
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$account = $this->app->user->account;
|
||||
if($account == 'guest')
|
||||
{
|
||||
$this->send(array('result' => 'fail', 'target' => $target, 'message' => 'guest.'));
|
||||
return;
|
||||
}
|
||||
if($account == 'guest') $this->send(array('result' => 'fail', 'target' => $target, 'message' => 'guest.'));
|
||||
|
||||
$name = $account . '.datatable.' . $this->post->target . '.' . $this->post->name;
|
||||
$this->loadModel('setting')->setItem($name, $this->post->value);
|
||||
if(dao::isError()) $this->send(array('result' => 'fail', 'message' => 'dao error.'));
|
||||
|
||||
@@ -14,7 +14,7 @@ $lang->datatable->required = '必选';
|
||||
$lang->datatable->branch = '分支';
|
||||
$lang->datatable->platform = '平台';
|
||||
|
||||
$lang->datatable->showModule = '标题是否显示模块';
|
||||
$lang->datatable->showModule = '列表页是否显示模块名';
|
||||
$lang->datatable->showModuleList[] = '不显示';
|
||||
$lang->datatable->showModuleList['base'] = '根节点';
|
||||
$lang->datatable->showModuleList['end'] = '终极节点';
|
||||
$lang->datatable->showModuleList['base'] = '只显示一级模块';
|
||||
$lang->datatable->showModuleList['end'] = '只显示最后一级模块';
|
||||
|
||||
Reference in New Issue
Block a user