- Fixed multiple language fallback

This commit is contained in:
mcndave committed 2023-01-26 13:29:34 +00:00
1 parent c7c955ecad
commit bc6344ad17
3 files changed
+17 -15

No files matched your search

+3 -3
View File
@@ -69,7 +69,7 @@ class Iterate
}
}
return static::arrayGet($recurse, implode($delimiter, $pathArr));
return static::arrayGet($recurse, implode($delimiter, $pathArr), $delimiter);
}
else {
return $array[$pathArr[0]];
@@ -102,12 +102,12 @@ class Iterate
$keylist = explode($delimiter, $key);
$finalKey = array_shift($keylist);
static::arrayKeysSet($keylist, $tmp, $value);
$swap[$finalKey] = static::splitKeys($tmp, $delimiter);
$swap[$finalKey] = static::splitKeys($tmp, $delimiter, $enclosed);
unset($array[isset($oldKey) ? $oldKey : $key]);
}
else if ( is_array($value) ) {
$value = static::splitKeys($value, $delimiter);
$value = static::splitKeys($value, $delimiter, $enclosed);
}
}