changeset 323:23625c53e62d

Fix CSS/JS config item array handling.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 09 Apr 2020 12:23:41 +0300
parents 2f4e3e458714
children d598b2320878
files mgallery.php
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mgallery.php	Thu Apr 09 11:55:08 2020 +0300
+++ b/mgallery.php	Thu Apr 09 12:23:41 2020 +0300
@@ -168,8 +168,8 @@
     // XXX: We do now. For now.
     "  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n".
     "  <title>".strip_tags($pageTitle)."</title>\n".
-    (is_array($pageJS) ? array_map('mgGetJSLine', $pageJS) : mgGetJSLine($pageJS)).
-    (is_array($pageCSS) ? array_map('mgGetCSSLine', $pageCSS) : mgGetCSSLine($pageCSS, FALSE)).
+    (is_array($pageJS) ? implode("", array_map('mgGetJSLine', $pageJS)) : mgGetJSLine($pageJS)).
+    (is_array($pageCSS) ? implode("", array_map('mgGetCSSLine', $pageCSS)) : mgGetCSSLine($pageCSS, FALSE)).
     "</head>\n".
     "<body>\n";