]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/BaseSearch.php
Changes:
[friendica.git] / src / Module / BaseSearch.php
index 262ec94a20b8d875f751c15ad0d8ee2ba83c0ff5..42686e62ff11f425653f0d65258011ad92d95b73 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -71,8 +71,8 @@ class BaseSearch extends BaseModule
                        $header  = DI::l10n()->t('People Search - %s', $search);
                } elseif (strpos($search, '!') === 0) {
                        $search = trim(substr($search, 1));
-                       $type   = Search::TYPE_FORUM;
-                       $header = DI::l10n()->t('Forum Search - %s', $search);
+                       $type   = Search::TYPE_GROUP;
+                       $header = DI::l10n()->t('Group Search - %s', $search);
                }
 
                $search = Network::convertToIdn($search);
@@ -98,7 +98,7 @@ class BaseSearch extends BaseModule
                }
 
                if (!$results->getTotal()) {
-                       $results = Search::getContactsFromProbe(Network::convertToIdn($search), $type == Search::TYPE_FORUM);
+                       $results = Search::getContactsFromProbe(Network::convertToIdn($search), $type == Search::TYPE_GROUP);
                }
 
                return self::printResult($results, $pager, $header);
@@ -151,4 +151,4 @@ class BaseSearch extends BaseModule
                        '$paginate' => $pager->renderFull($results->getTotal()),
                ]);
        }
-}
\ No newline at end of file
+}