- Fixed multiple language fallback
This commit is contained in:
1 parent
c7c955ecad
commit
bc6344ad17
3 files changed
+17
-15
No files matched your search
+3
-3
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user