From 9eda42434a79b9bd9d7f2de5b872e3320543acfc Mon Sep 17 00:00:00 2001 From: itismadness Date: Tue, 17 Aug 2021 15:57:36 +0000 Subject: [PATCH] Fix regression in show_header::option['css'] --- classes/view.class.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/classes/view.class.php b/classes/view.class.php index e7cf6e8e2..0d42521fc 100644 --- a/classes/view.class.php +++ b/classes/view.class.php @@ -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 = [