Browse Source

Fix Broken Profile Links (#5286)

* Expose the block_public setting to head.tpl

* Do not include hovercard.js if block_public
tags/2018.09
miqrogroove Hypolite Petovan 1 year ago
parent
commit
b5fe1c60a9
2 changed files with 3 additions and 0 deletions
  1. +1
    -0
      src/App.php
  2. +2
    -0
      view/theme/frio/templates/head.tpl

+ 1
- 0
src/App.php 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'];
}



+ 2
- 0
view/theme/frio/templates/head.tpl 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">


Loading…
Cancel
Save