* code for task #7939.

This commit is contained in:
z
2020-09-23 15:05:45 +08:00
parent 103a6d6011
commit 3fa53be319
5 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ class custom extends control
}
}
if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError()));
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('custom', 'set', "module=$module&field=$field&lang=" . str_replace('-', '_', $lang))));
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('custom', 'set', "module=$module&field=$field&lang=" . str_replace('-', '_', isset($this->config->langs[$lang]) ? $lang : 'all'))));
}
/* Check whether the current language has been customized. */