]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Search/Index.php
Use centralized function to fetch query results
[friendica.git] / src / Module / Search / Index.php
index 769d5f90d2a2ee9862097f68bf795b4a43e63e87..93c1af7aa6d5874afb82f08d744ae4392969c893 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -41,7 +41,7 @@ use Friendica\Network\HTTPException;
 
 class Index extends BaseSearch
 {
-       public static function content(array $parameters = [])
+       protected function content(array $request = []): string
        {
                $search = (!empty($_GET['q']) ? trim(rawurldecode($_GET['q'])) : '');