mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixed i18nTextCollector module disambiguation, was looking at wrong array key (shifted one due to removed priority setting)
This commit is contained in:
parent
98c2517b80
commit
f47cf33d71
@ -135,10 +135,10 @@ class i18nTextCollector extends Object {
|
||||
|
||||
// extract all entities for "foreign" modules (fourth argument)
|
||||
foreach($entitiesByModule[$module] as $fullName => $spec) {
|
||||
if(isset($spec[3]) && $spec[3] && $spec[3] != $module) {
|
||||
$othermodule = $spec[3];
|
||||
if(isset($spec[2]) && $spec[2] && $spec[2] != $module) {
|
||||
$othermodule = $spec[2];
|
||||
if(!isset($entitiesByModule[$othermodule])) $entitiesByModule[$othermodule] = array();
|
||||
unset($spec[3]);
|
||||
unset($spec[2]);
|
||||
$entitiesByModule[$othermodule][$fullName] = $spec;
|
||||
unset($entitiesByModule[$module][$fullName]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user