From a9c8d4a2162d096b8e09daae1e2c1af6c99d76fb Mon Sep 17 00:00:00 2001 From: zotlabs Date: Fri, 30 Dec 2016 13:09:35 -0800 Subject: [PATCH] peoplefind widget should honour directory option settings (such as this site only). --- Zotlabs/Module/Directory.php | 1 + view/tpl/peoplefind.tpl | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php index 76f1937a2..59ae88857 100644 --- a/Zotlabs/Module/Directory.php +++ b/Zotlabs/Module/Directory.php @@ -68,6 +68,7 @@ class Directory extends \Zotlabs\Web\Controller { $observer = get_observer_hash(); $globaldir = get_directory_setting($observer, 'globaldir'); + // override your personal global search pref if we're doing a navbar search of the directory if(intval($_REQUEST['navsearch'])) $globaldir = 1; diff --git a/view/tpl/peoplefind.tpl b/view/tpl/peoplefind.tpl index 0b7f792a6..ae0b7f1ea 100755 --- a/view/tpl/peoplefind.tpl +++ b/view/tpl/peoplefind.tpl @@ -1,7 +1,6 @@

{{$findpeople}}

-