Only offer forum search in local mode.

This commit is contained in:
Michael Vogel
2015-08-25 05:54:50 +02:00
parent c41b87f47d
commit b1dddd2936
4 changed files with 12 additions and 7 deletions

View File

@@ -121,8 +121,10 @@ function nav_info(&$a) {
$nav['searchoption'] = array(
t("Full Text"),
t("Tags"),
t("Contacts"),
t("Forums"));
t("Contacts"));
if (get_config('system','poco_local_search'))
$nav['searchoption'][] = t("Forums");
$gdirpath = 'directory';