diff --git a/module/dev/control.php b/module/dev/control.php index 2f7b9d5f6d..0dd891c2fc 100644 --- a/module/dev/control.php +++ b/module/dev/control.php @@ -200,10 +200,11 @@ class dev extends control if($oldValue) { $oldValue = json_decode($oldValue); - $_POST = array(); - $_POST['SRName'] = zget($oldValue, 'defaultSRName', $oldValue->SRName); - $_POST['URName'] = zget($oldValue, 'defaultURName', $oldValue->URName); - $this->custom->updateURAndSR($this->config->custom->URSR, $language); + $setting = array( + 'SRName' => zget($oldValue, 'defaultSRName', $oldValue->SRName), + 'URName' => zget($oldValue, 'defaultURName', $oldValue->URName) + ); + $this->custom->updateURAndSR($this->config->custom->URSR, $language, $setting); } }