Permalink
Browse files

MINOR Fixed i18nTextCollector module disambiguation, was looking at w…

…rong array key (shifted one due to removed priority setting)
  • Loading branch information...
1 parent 98c2517 commit f47cf33d71a3c493ec148bbc9919ef320abc1f64 @chillu chillu committed Apr 27, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 i18n/i18nTextCollector.php
@@ -135,10 +135,10 @@ public function run($restrictToModules = null) {
// 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]);
}

0 comments on commit f47cf33

Please sign in to comment.