aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-30 13:09:35 -0800
committerzotlabs <mike@macgirvin.com>2016-12-30 13:09:35 -0800
commita9c8d4a2162d096b8e09daae1e2c1af6c99d76fb (patch)
tree3053430066293e1d4f65de476c8c4f3655e1533c
parent2e2254371a0d6bdc2bb6e13b699e6353e42b1c2f (diff)
downloadvolse-hubzilla-a9c8d4a2162d096b8e09daae1e2c1af6c99d76fb.tar.gz
volse-hubzilla-a9c8d4a2162d096b8e09daae1e2c1af6c99d76fb.tar.bz2
volse-hubzilla-a9c8d4a2162d096b8e09daae1e2c1af6c99d76fb.zip
peoplefind widget should honour directory option settings (such as this site only).
-rw-r--r--Zotlabs/Module/Directory.php1
-rwxr-xr-xview/tpl/peoplefind.tpl1
2 files changed, 1 insertions, 1 deletions
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 @@
<div id="peoplefind-sidebar" class="widget">
<h3>{{$findpeople}}</h3>
<form action="directory" method="post" />
- <input type="hidden" name="navsearch" value="1" />
<div class="form-group">
<div class="input-group">
<input class="widget-input" type="text" name="search" title="{{$hint}}{{if $advanced_search}}{{$advanced_hint}}{{/if}}" placeholder="{{$desc}}" />