]> git.mxchange.org Git - friendica.git/commitdiff
Fix Broken Profile Links (#5286)
authormiqrogroove <miqrogroove@gmail.com>
Sat, 14 Jul 2018 20:31:46 +0000 (16:31 -0400)
committerHypolite Petovan <mrpetovan@eml.cc>
Sat, 14 Jul 2018 20:31:46 +0000 (16:31 -0400)
* Expose the block_public setting to head.tpl

* Do not include hovercard.js if block_public

src/App.php
view/theme/frio/templates/head.tpl

index 38b207c2668acc0a0e1139ffc221ca144346709e..059efc17cca217759445fc5c803ea20b84f7ee16 100644 (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'];
        }
 
index ef1cd810b0ee37d07b54f2686c474ed186b416bb..7d6cadea94fad12936a587ec387055a5842a6bba 100644 (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">