From f16a1199408d167bbc7c52dc408ef02b36808317 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 19 May 2012 21:53:27 -0700 Subject: search with leading @ performs directory search (# for tag search), nothing for text search --- mod/search.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mod/search.php') diff --git a/mod/search.php b/mod/search.php index 635c87b70..3e6bf68aa 100644 --- a/mod/search.php +++ b/mod/search.php @@ -80,7 +80,7 @@ function search_content(&$a) { $o = '' . "\r\n"; - $o .= '

' . t('Search This Site') . '

'; + $o .= '

' . t('Search') . '

'; if(x($a->data,'search')) $search = notags(trim($a->data['search'])); @@ -101,6 +101,10 @@ function search_content(&$a) { $tag = true; $search = substr($search,1); } + if(strpos($search,'@') === 0) { + require_once('mod/dirfind.php'); + return dirfind_content($a); + } if(! $search) return $o; -- cgit v1.2.3