Remove vendor config prefix when matching data in create SEP Xml
Vendor config data is no longer prefixed. Create xml was looking for a prefix and so no vendor config data was updated
This commit is contained in:
parent
88409eb6c8
commit
64ab034443
|
@ -25,7 +25,7 @@ class xmlinterface
|
|||
|
||||
public function info()
|
||||
{
|
||||
$Ver = '13.0.5';
|
||||
$Ver = '13.0.6';
|
||||
return array('Version' => $Ver,
|
||||
'about' => 'Create XML data interface ver: ' . $Ver);
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ class xmlinterface
|
|||
|
||||
function create_SEP_XML($store_path, $data_values, $dev_config, $dev_id, $lang_info = array())
|
||||
{
|
||||
// TODO: $data_values are system wide defaults, $dev_config are specific defice values.
|
||||
// TODO: $data_values are system wide defaults, $dev_config are specific device values.
|
||||
// Need to merge the two arrays so that device specific values override system values
|
||||
$langCodeArray = array(
|
||||
'Arabic_Saudi_Arabia' => 'ar',
|
||||
|
@ -309,9 +309,7 @@ class xmlinterface
|
|||
case 'vendorconfig':
|
||||
$xml_node = $xml_work->$key;
|
||||
foreach ($xml_work->$key->children() as $dkey => $ddata) {
|
||||
$dkey_l = strtolower($dkey);
|
||||
$vtmp_key = $key_l.'_'.$dkey_l;
|
||||
if (isset($data_values[$vtmp_key])) {
|
||||
if (isset($data_values[strtolower($dkey)])) {
|
||||
$vtmp_data = $data_values[$vtmp_key];
|
||||
if ((!empty($vtmp_data)) || ($vtmp_data == "0")) {
|
||||
$xml_node->$dkey = $vtmp_data;
|
||||
|
|
Loading…
Reference in a new issue