1
1
Fork 0

Fix Broken Profile Links (#5286)

* Expose the block_public setting to head.tpl

* Do not include hovercard.js if block_public
This commit is contained in:
miqrogroove 2018-07-14 16:31:46 -04:00 committed by Hypolite Petovan
parent 678efab1c9
commit b5fe1c60a9
2 changed files with 3 additions and 0 deletions

View file

@ -554,6 +554,7 @@ class App
'$touch_icon' => $touch_icon,
'$stylesheet' => $stylesheet,
'$infinite_scroll' => $invinite_scroll,
'$block_public' => intval(Config::get('system', 'block_public')),
]) . $this->page['htmlhead'];
}

View file

@ -92,7 +92,9 @@
{{* own js files *}}
<script type="text/javascript" src="view/theme/frio/js/theme.js"></script>
<script type="text/javascript" src="view/theme/frio/js/modal.js"></script>
{{if ! $block_public}}
<script type="text/javascript" src="view/theme/frio/js/hovercard.js"></script>
{{/if}}
<script type="text/javascript" src="view/theme/frio/js/textedit.js"></script>
<script type="text/javascript">