From b5fe1c60a908acbdbeec140e237ff118c845ac6b Mon Sep 17 00:00:00 2001 From: miqrogroove Date: Sat, 14 Jul 2018 16:31:46 -0400 Subject: [PATCH] Fix Broken Profile Links (#5286) * Expose the block_public setting to head.tpl * Do not include hovercard.js if block_public --- src/App.php | 1 + view/theme/frio/templates/head.tpl | 2 ++ 2 files changed, 3 insertions(+) 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}}