From: miqrogroove Date: Sat, 14 Jul 2018 20:31:46 +0000 (-0400) Subject: Fix Broken Profile Links (#5286) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b5fe1c60a908acbdbeec140e237ff118c845ac6b;p=friendica.git Fix Broken Profile Links (#5286) * Expose the block_public setting to head.tpl * Do not include hovercard.js if block_public --- diff --git a/src/App.php b/src/App.php index 38b207c266..059efc17cc 100644 --- a/src/App.php +++ b/src/App.php @@ -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']; } diff --git a/view/theme/frio/templates/head.tpl b/view/theme/frio/templates/head.tpl index ef1cd810b0..7d6cadea94 100644 --- a/view/theme/frio/templates/head.tpl +++ b/view/theme/frio/templates/head.tpl @@ -92,7 +92,9 @@ {{* own js files *}} +{{if ! $block_public}} +{{/if}}