mirror of
https://github.com/friendica/friendica
synced 2025-04-26 09:50:15 +00:00
Replace BaseObject class with DI::* calls
This commit is contained in:
parent
1de3f186d7
commit
388b963714
98 changed files with 321 additions and 440 deletions
|
@ -126,9 +126,7 @@ class Index extends BaseSearchModule
|
|||
// OR your own posts if you are a logged in member
|
||||
// No items will be shown if the member has a blocked profile wall.
|
||||
|
||||
/** @var Arguments $args */
|
||||
$args = self::getClass(Arguments::class);
|
||||
$pager = new Pager($args->getQueryString());
|
||||
$pager = new Pager(DI::args()->getQueryString());
|
||||
|
||||
if ($tag) {
|
||||
Logger::info('Start tag search.', ['q' => $search]);
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace Friendica\Module\Search;
|
||||
|
||||
use Friendica\App\Arguments;
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Database\DBA;
|
||||
|
@ -13,10 +12,7 @@ class Saved extends BaseModule
|
|||
{
|
||||
public static function init(array $parameters = [])
|
||||
{
|
||||
/** @var Arguments $args */
|
||||
$args = self::getClass(Arguments::class);
|
||||
|
||||
$action = $args->get(2, 'none');
|
||||
$action = DI::args()->get(2, 'none');
|
||||
$search = Strings::escapeTags(trim(rawurldecode($_GET['term'] ?? '')));
|
||||
|
||||
$return_url = $_GET['return_url'] ?? 'search?q=' . urlencode($search);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue