Skip to content

Commit

Permalink
Merge branch 'release-12.44.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Feb 24, 2025
2 parents 437b1af + 5a57580 commit 3a4f5f2
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions model/sharedStimulus/css/service/ListStylesheetsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ public function getList(ListStylesheets $listStylesheetsDTO): array

$data = [];
foreach ($list as $file) {
$data[] = [
'name' => basename($file['path']),
'uri' => DIRECTORY_SEPARATOR . basename($file['path']),
'mime' => 'text/css',
'filePath' => DIRECTORY_SEPARATOR . basename($file['path']),
'size' => $file['fileSize']
];
if ($file['type'] == 'file') {
$data[] = [
'name' => basename($file['path']),
'uri' => DIRECTORY_SEPARATOR . basename($file['path']),
'mime' => 'text/css',
'filePath' => DIRECTORY_SEPARATOR . basename($file['path']),
'size' => $file['fileSize']
];
}
}

return [
Expand Down

0 comments on commit 3a4f5f2

Please sign in to comment.