1
1
Fork 0

Now you can set search options so that searching for contacts or forums isn't occult science anymore.

This commit is contained in:
Michael Vogel 2015-08-24 11:55:29 +02:00
commit 3ff196f00d
6 changed files with 46 additions and 8 deletions

View file

@ -14,13 +14,13 @@ function dirfind_init(&$a) {
function dirfind_content(&$a) {
function dirfind_content(&$a, $prefix = "") {
$community = false;
$local = get_config('system','poco_local_search');
$search = notags(trim($_REQUEST['search']));
$search = $prefix.notags(trim($_REQUEST['search']));
if(strpos($search,'@') === 0)
$search = substr($search,1);