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. */