X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FSearch%2FSaved.php;h=4256ffcd44ec4904cd68b785eab258c02083809f;hb=6dbbd081795fa1c8fe57db2248ac162efeeada88;hp=6fdb16171cb430773bd21777894e3bec0d311b4d;hpb=ce578a77453fd421e9598c994ef008ad7e128de6;p=friendica.git diff --git a/src/Module/Search/Saved.php b/src/Module/Search/Saved.php index 6fdb16171c..4256ffcd44 100644 --- a/src/Module/Search/Saved.php +++ b/src/Module/Search/Saved.php @@ -1,6 +1,6 @@ baseUrl = $baseUrl; - $this->dba = $dba; - $this->args = $args; + $this->dba = $dba; } - public function rawContent() + protected function rawContent(array $request = []) { $action = $this->args->get(2, 'none'); $search = trim(rawurldecode($_GET['term'] ?? '')); @@ -59,16 +55,16 @@ class Saved extends BaseModule $fields = ['uid' => local_user(), 'term' => $search]; if (!$this->dba->exists('search', $fields)) { if (!$this->dba->insert('search', $fields)) { - notice($this->l10n->t('Search term was not saved.')); + notice($this->t('Search term was not saved.')); } } else { - notice($this->l10n->t('Search term already saved.')); + notice($this->t('Search term already saved.')); } break; case 'remove': if (!$this->dba->delete('search', ['uid' => local_user(), 'term' => $search])) { - notice($this->l10n->t('Search term was not removed.')); + notice($this->t('Search term was not removed.')); } break; }