Skip to content

Commit

Permalink
Fix regression in show_header::option['css']
Browse files Browse the repository at this point in the history
  • Loading branch information
itismadness committed Aug 20, 2021
1 parent 1900f24 commit 9eda424
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion classes/view.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ public static function show_header(string $pageTitle, $option = []) {
'global.css',
];
if (!empty($option['css'])) {
$Style = array_merge($Style, explode(',', $option['css']));
$Style = array_merge(
$Style,
array_map(
function ($style) {
return $style . "/style.css";
},
explode(',', $option['css'])
)
);
}

$Scripts = [
Expand Down

0 comments on commit 9eda424

Please sign in to comment.