Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions classes/casset.php
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,7 @@ protected static function files_to_render($type, $group)
// Add it to the list of rendered groups
array_push(static::$rendered_groups[$type], $group_name);

$added = array();
foreach (static::$groups[$type][$group_name]['files'] as $file_set)
{
if (static::$groups[$type][$group_name]['min'])
Expand All @@ -1081,10 +1082,14 @@ protected static function files_to_render($type, $group)
$assets = static::find_files($file_set[0], $type);
}
foreach ($assets as $file) {
array_push($files[$group_name], array(
'file' => $file,
'minified' => $minified,
));
if (!in_array($file, $added))
{
array_push($files[$group_name], array(
'file' => $file,
'minified' => $minified,
));
$added[] = $file;
}
}
}
}
Expand Down