| @@ 691-695 (lines=5) @@ | ||
| 688 | foreach ($temp1 as $name) { |
|
| 689 | if ($flags[$name] == 'ML') { |
|
| 690 | $S = []; |
|
| 691 | if (isset($temp[$name]['Profile'])) { |
|
| 692 | foreach ($temp[$name]['Profile'] as $z) |
|
| 693 | foreach ($z as $l => $w) |
|
| 694 | $S[$l] = $w; |
|
| 695 | } |
|
| 696 | if (!$S && isset($temp[$name]['IdP'])) { |
|
| 697 | foreach ($temp[$name]['IdP'] as $z) |
|
| 698 | foreach ($z as $l => $w) |
|
| @@ 696-700 (lines=5) @@ | ||
| 693 | foreach ($z as $l => $w) |
|
| 694 | $S[$l] = $w; |
|
| 695 | } |
|
| 696 | if (!$S && isset($temp[$name]['IdP'])) { |
|
| 697 | foreach ($temp[$name]['IdP'] as $z) |
|
| 698 | foreach ($z as $l => $w) |
|
| 699 | $S[$l] = $w; |
|
| 700 | } |
|
| 701 | $out[$name]['langs'] = $S; |
|
| 702 | if (isset($S[$this->lang_index]) || isset($S['C'])) |
|
| 703 | $out[$name][0] = (isset($S[$this->lang_index])) ? $S[$this->lang_index] : $S['C']; |
|