From fa7624efbda77fcd499239f81683c935efd9d4cd Mon Sep 17 00:00:00 2001 From: zenggang Date: Thu, 13 Oct 2022 07:44:06 +0000 Subject: [PATCH] * Fix bug#28514 --- module/custom/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/custom/control.php b/module/custom/control.php index a770c7b2e6..0bfd16dd6c 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -261,7 +261,7 @@ class custom extends control } } if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError())); - return $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')))); + return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('custom', 'set', "module=$module&field=$field&lang=" . ($lang == 'all' ? $lang : '')))); } /* Check whether the current language has been customized. */