Skip to content

Commit

Permalink
Styling & Comment fixes (1.2.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
twiro committed Mar 4, 2017
1 parent e370d16 commit 13f01fa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion extension.driver.php
Expand Up @@ -267,7 +267,7 @@ private function findEntries(XMLElement $xml, $node_name = 'entry')

if ($element instanceof XMLElement) {

// check if element is entry
// check if element node name is "entry" / "item"

if ($element->getName() === $node_name) {

Expand Down Expand Up @@ -335,8 +335,13 @@ private function processFields(XMLElement $xml)

$xml->removeChildAt($element_index);
}

// process child "item" nodes (that might contain multilingual content injected by "association ouput")

} else {

if (!empty($element->getChildrenByName('item'))) {

$this->findEntries($element, 'item');
}
}
Expand Down

0 comments on commit 13f01fa

Please sign in to comment.