Commit 02c1360c authored by Henning Leutz's avatar Henning Leutz 🥋

fix: missing user and project attributes in no conflict mode

parent 3b683e64
......@@ -59,15 +59,18 @@
URL_TEMPLATE_DIR = '{$URL_OPT_DIR}{$Project->getAttribute('template')}/';
var QUIQQER = {
lu : '{$lastUpdate}',
lu : '{$lastUpdate|md5}',
ajax: '{$URL_DIR}ajax.php',
title: '{$Template->getTitle()|escape:"html"}'
title: '{$Template->getTitle()|escape:"html"}',
country: '{$systemCountry}'
};
{assign var=httpshost value=$Project->getVHost( true, true )}
var QUIQQER_PROJECT = {
name : '{$Project->getName()}',
lang : '{$Project->getLang()}',
name : '{$Project->getName()}',
lang : '{$Project->getLang()}',
languages : '{$languages}',
logo : '{if isset($projectLogo)}{$projectLogo}{/if}',
template : '{$Project->getAttribute("template")|escape:"html"}',
httpshost : {if strpos( $httpshost, 'https' ) !== false}'{$httpshost}'{else}false{/if}
};
......@@ -97,9 +100,9 @@
var QUIQQER_USER = {
id : {if $User->getId()}{$User->getId()}{else}0{/if},
name : '{$User->getName()}',
lang : '{$User->getLang()}',
country: {if $userCountry}'{$userCountry->getCode()}'{else}false{/if}
};
lang : '{$User->getLang()}',
country: {if $userCountry}'{$userCountry->getCode()}'{else}false{/if}
};
</script>
<script async src="{$URL_BIN_DIR}QUI/polyfills/picturefill.min.js?lu={$lastUpdate}"></script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment