* code for task #84532.

This commit is contained in:
wangyidong
2023-02-16 13:55:23 +08:00
parent bb1cc9d480
commit 1b70d6e8a4
9 changed files with 84 additions and 38 deletions
+4 -3
View File
@@ -778,13 +778,14 @@ class customModel extends model
/**
* Edit UR and SR concept.
*
* @param int $key
* @param int $key
* @param string $lang zh-cn|zh-tw|en|fr|de
* @access public
* @return bool
*/
public function updateURAndSR($key = 0)
public function updateURAndSR($key = 0, $lang = '')
{
$lang = $this->app->getClientLang();
if(empty($lang)) $lang = $this->app->getClientLang();
$data = fixer::input('post')->get();
if(!$data->SRName || !$data->URName) return false;