Skip to content

Commit

Permalink
more use getScripts(), getStyleSheets()
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Jun 23, 2019
1 parent ed2bf1d commit ba84900
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/src/Document/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ public function render($cache = false, $params = array())
protected function preloadAssets()
{
// Process stylesheets first
foreach ($this->_styleSheets as $link => $properties)
foreach ($this->getStyleSheets() as $link => $properties)
{
if (empty($properties['options']['preload']))
{
Expand All @@ -1281,7 +1281,7 @@ protected function preloadAssets()
}

// Now process scripts
foreach ($this->_scripts as $link => $properties)
foreach ($this->getScripts() as $link => $properties)
{
if (empty($properties['options']['preload']))
{
Expand Down

0 comments on commit ba84900

Please sign in to comment.