mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update provision.php
Used to replace the domain name in the yealink_provision_url
This commit is contained in:
@@ -1201,6 +1201,12 @@
|
||||
//replace the dynamic provision variables that are defined in default, domain, and device settings
|
||||
if (is_array($provision)) {
|
||||
foreach($provision as $key=>$val) {
|
||||
if (!empty($val) && is_string($val) && strpos($val, '{$domain_name}') !== false) {
|
||||
$val = str_replace('{$domain_name}', $domain_name, $val);
|
||||
}
|
||||
if (!empty($val) && is_string($val) && strpos($val, '${domain_name}') !== false) {
|
||||
$val = str_replace('${domain_name}', $domain_name, $val);
|
||||
}
|
||||
$view->assign($key, $val);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user