Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
Issue #75: Pass content by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
johanjanssens committed May 2, 2016
1 parent 606ec68 commit 1ae7d37
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions code/view/json.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,8 @@ protected function _getEntityRoute(ModelEntityInterface $entity)
*/
protected function _convertRelativeLinks(ViewContextInterface $context)
{
$content = $context->content;

if (is_array($content) || $content instanceof \Traversable) {
$this->_processLinks($content);
if (is_array($context->content) || $context->content instanceof \Traversable) {
$this->_processLinks($context->content);
}
}

Expand Down

0 comments on commit 1ae7d37

Please sign in to comment.