1
0
Fork 0

wrong parameter for BaseURL get in smoothly theme

Fixes at least the smoothly aspect pf #11752 other themes brokeness could not be reproduced on my node.
This commit is contained in:
Tobias Diekershoff 2022-07-20 06:58:26 +02:00
parent 163f0aa14d
commit d6123976f5
Signed by: tobias
GPG key ID: 25FE376FF17694A1

View file

@ -22,7 +22,7 @@ function smoothly_init(App $a) {
Renderer::setActiveTemplateEngine('smarty3'); Renderer::setActiveTemplateEngine('smarty3');
$cssFile = null; $cssFile = null;
$ssl_state = null; $ssl_state = false;
$baseurl = DI::baseUrl()->get($ssl_state); $baseurl = DI::baseUrl()->get($ssl_state);
DI::page()['htmlhead'] .= <<< EOT DI::page()['htmlhead'] .= <<< EOT
@ -89,7 +89,7 @@ if (! function_exists('_js_in_foot')) {
function _js_in_foot() { function _js_in_foot() {
/** @purpose insert stuff in bottom of page /** @purpose insert stuff in bottom of page
*/ */
$ssl_state = null; $ssl_state = false;
$baseurl = DI::baseUrl()->get($ssl_state); $baseurl = DI::baseUrl()->get($ssl_state);
$bottom['$baseurl'] = $baseurl; $bottom['$baseurl'] = $baseurl;
$tpl = Renderer::getMarkupTemplate('bottom.tpl'); $tpl = Renderer::getMarkupTemplate('bottom.tpl');