mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Change the vendor ID hex number to lower case and re-use prov object that already exists.
This commit is contained in:
@@ -86,7 +86,7 @@ include "root.php";
|
||||
case "000e08":
|
||||
$device_vendor = "linksys";
|
||||
break;
|
||||
case "08000F":
|
||||
case "08000f":
|
||||
$device_vendor = "mitel";
|
||||
break;
|
||||
case "0080f0":
|
||||
|
||||
@@ -299,8 +299,7 @@ openlog("fusion-provisioning", LOG_PID | LOG_PERROR, LOG_LOCAL0);
|
||||
//need to make sure content-type is correct
|
||||
if ($_REQUEST['content_type'] == 'application/octet-stream') {
|
||||
//format the mac address and
|
||||
$format = new provision();
|
||||
$mac = $format->format_mac($mac, $device_vendor);
|
||||
$mac = $prov->format_mac($mac, $device_vendor);
|
||||
|
||||
//replace the variable name with the value
|
||||
$file_name = str_replace("{\$mac}", $mac, $file);
|
||||
|
||||
Reference in New Issue
Block a user