Remove deprecated App::cmd - replace with DI::args()->getCommand()

This commit is contained in:
nupplaPhil
2019-12-16 01:33:13 +01:00
parent e6f61c2cc7
commit 33674808dc
16 changed files with 23 additions and 25 deletions

View File

@@ -11,6 +11,7 @@ use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\Profile;
use Friendica\Util\Network;
@@ -38,7 +39,7 @@ function match_content(App $a)
$a->page['aside'] .= Widget::findPeople();
$a->page['aside'] .= Widget::follow();
$_SESSION['return_path'] = $a->cmd;
$_SESSION['return_path'] = DI::args()->getCommand();
$profile = Profile::getByUID(local_user());