# HG changeset patch # User Matti Hamalainen # Date 1586424221 -10800 # Node ID 23625c53e62d8e5221909069c29edc096ab48066 # Parent 2f4e3e4587145b0c79c21c9674b43de3922ea461 Fix CSS/JS config item array handling. diff -r 2f4e3e458714 -r 23625c53e62d mgallery.php --- 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. " \n". " ".strip_tags($pageTitle)."\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)). "\n". "\n";