comparison mgallery.php @ 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 782c1520984e
comparison
equal deleted inserted replaced
322:2f4e3e458714 323:23625c53e62d
166 // Setting the viewport makes things break especially with the 166 // Setting the viewport makes things break especially with the
167 // text-size-adjust CSS settings... so we don't use it. 167 // text-size-adjust CSS settings... so we don't use it.
168 // XXX: We do now. For now. 168 // XXX: We do now. For now.
169 " <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n". 169 " <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n".
170 " <title>".strip_tags($pageTitle)."</title>\n". 170 " <title>".strip_tags($pageTitle)."</title>\n".
171 (is_array($pageJS) ? array_map('mgGetJSLine', $pageJS) : mgGetJSLine($pageJS)). 171 (is_array($pageJS) ? implode("", array_map('mgGetJSLine', $pageJS)) : mgGetJSLine($pageJS)).
172 (is_array($pageCSS) ? array_map('mgGetCSSLine', $pageCSS) : mgGetCSSLine($pageCSS, FALSE)). 172 (is_array($pageCSS) ? implode("", array_map('mgGetCSSLine', $pageCSS)) : mgGetCSSLine($pageCSS, FALSE)).
173 "</head>\n". 173 "</head>\n".
174 "<body>\n"; 174 "<body>\n";
175 175
176 if ($pageUrchin !== NULL) 176 if ($pageUrchin !== NULL)
177 { 177 {