aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-05-30 22:40:22 +0200
committerMario Vavti <mario@mariovavti.com>2018-05-30 22:40:22 +0200
commit6349a7417f41cd697ba2dea82653911a1abaaf94 (patch)
tree39ae6dd7de859405c6fd6fd88bc42a2fce0f483b /include/nav.php
parente1a55ba471a2de5dd31e51c2471f8c3122ad2919 (diff)
downloadvolse-hubzilla-6349a7417f41cd697ba2dea82653911a1abaaf94.tar.gz
volse-hubzilla-6349a7417f41cd697ba2dea82653911a1abaaf94.tar.bz2
volse-hubzilla-6349a7417f41cd697ba2dea82653911a1abaaf94.zip
make navbar search use the module search function in /network and /channel
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/nav.php b/include/nav.php
index c5ceb97c5..994819ed4 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -168,7 +168,19 @@ function nav($template = 'default') {
$nav['help'] = [$help_url, t('Help'), "", t('Help and documentation'), 'help_nav_btn', $context_help, $enable_context_help];
}
- $nav['search'] = ['search', t('Search'), "", t('Search site @name, !forum, #tag, ?docs, content')];
+ switch(App::$module) {
+ case 'network':
+ $search_form_action = 'network';
+ break;
+ case 'channel':
+ $search_form_action = 'channel';
+ break;
+ default:
+ $search_form_action = 'search';
+ }
+
+
+ $nav['search'] = ['search', t('Search'), "", t('Search site @name, !forum, #tag, ?docs, content'), $search_form_action];
/**