Skip to content

Commit

Permalink
fix duplicated resource redering
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisGalliano committed Jan 23, 2019
1 parent b69832e commit 33aff80
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Templating/Assets/Manager/AssetsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ public function render(string $section = null): void
$this->sections = [];
}

$renderedResources = [];
foreach ($resources as $resource) {
print $resource->render();
$rendered = $resource->render();
$renderedResources[$rendered] = $rendered;
}
foreach ($renderedResources as $resource) {
print $resource;
}
}
}
}

0 comments on commit 33aff80

Please sign in to comment.