peoplefind widget should honour directory option settings (such as this site only).
This commit is contained in:
parent
2e2254371a
commit
a9c8d4a216
@ -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;
|
||||
|
@ -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}}" />
|
||||
|
Reference in New Issue
Block a user