aboutsummaryrefslogtreecommitdiffstats
path: root/mod/search.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-07-06 20:21:41 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-07-06 20:21:41 -0700
commit7cfaae8d4fb8402c78a707e73b4dd64c568c4c8c (patch)
tree7f519c9d51915a97992f04dcc39996505a92cf21 /mod/search.php
parent1b3e046cd274b5152a4df1a692f30c2bed606cde (diff)
downloadvolse-hubzilla-7cfaae8d4fb8402c78a707e73b4dd64c568c4c8c.tar.gz
volse-hubzilla-7cfaae8d4fb8402c78a707e73b4dd64c568c4c8c.tar.bz2
volse-hubzilla-7cfaae8d4fb8402c78a707e73b4dd64c568c4c8c.zip
ok that's wretchedly inefficient but provides a basic relevance search for strings in doc files.
Diffstat (limited to 'mod/search.php')
-rw-r--r--mod/search.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/search.php b/mod/search.php
index dceb7d72a..ce8357fb9 100644
--- a/mod/search.php
+++ b/mod/search.php
@@ -59,6 +59,10 @@ function search_content(&$a,$update = 0, $load = false) {
$search = substr($search,1);
goaway(z_root() . '/directory' . '?f=1&navsearch=1&search=' . $search);
}
+ if(strpos($search,'?') === 0) {
+ $search = substr($search,1);
+ goaway(z_root() . '/help' . '?f=1&navsearch=1&search=' . $search);
+ }
// look for a naked webbie
if(strpos($search,'@') !== false) {