Standardise URL

Standardise URL based on PHP Defaults
This commit is contained in:
steve-lad 2021-06-10 17:41:18 +02:00
parent cf546961fe
commit 7427fcabb8

View file

@ -88,7 +88,7 @@ class Sccp extends \FreePBX\modules\Core\Driver {
$sth = $this->database->prepare($sql);
$sth->execute();
redirect('http://192.168.50.254/admin/config.php?display=sccp_phone', false);
redirect("http://{$_SERVER['SERVER_ADDR']}/admin/config.php?display=sccp_phone", false);
return true;
}