Skip to content

Commit

Permalink
Merge pull request #17 from b4rtaz/master
Browse files Browse the repository at this point in the history
fix problem with only first parsed script in jsonLD (closes #16)
  • Loading branch information
jkphl authored May 13, 2017
2 parents f6f7832 + 3a4ac48 commit af5eb6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jkphl/Micrometa/Parser/JsonLD.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function items()
foreach ($this->_dom->xpath()->query('//script[@type = "application/ld+json"]') as $jsonLD) {
$jsonLDInline = trim($jsonLD->textContent);
if (strlen($jsonLDInline)) {
$this->_items = $this->_items + $this->parseBlock($jsonLDInline);
$this->_items = array_merge($this->_items, $this->parseBlock($jsonLDInline));
}
}
}
Expand Down

0 comments on commit af5eb6a

Please sign in to comment.