]> git.mxchange.org Git - friendica.git/blobdiff - include/text.php
Merge pull request #1926 from annando/1510-permit-crawler
[friendica.git] / include / text.php
index 9a65224af9bfd4e3d8ae19b5f7b97c67734b6038..0002f074e96aea483d76d17c8da2e6e9735b3c52 100644 (file)
@@ -998,12 +998,15 @@ function search($s,$id='search-box',$url='/search',$save = false, $aside = true)
                        '$savedsearch' => feature_enabled(local_user(),'savedsearch'),
                );
 
-       if (!$aside)
+       if (!$aside) {
                $values['$searchoption'] = array(
                                        t("Full Text"),
                                        t("Tags"),
-                                       t("Contacts"),
-                                       t("Forums"));
+                                       t("Contacts"));
+
+               if (get_config('system','poco_local_search'))
+                       $values['$searchoption'][] = t("Forums");
+       }
 
         return replace_macros(get_markup_template('searchbox.tpl'), $values);
 }}