mirror of
https://github.com/friendica/friendica
synced 2025-04-19 13:10:10 +00:00
Replace calls for App::redirect() with AppHelper
This commit is contained in:
parent
2c0db2f043
commit
d87f24f17a
3 changed files with 6 additions and 6 deletions
|
@ -18,13 +18,13 @@ class RandomProfile extends BaseModule
|
|||
{
|
||||
protected function content(array $request = []): string
|
||||
{
|
||||
$a = DI::app();
|
||||
$appHelper = DI::apphelper();
|
||||
|
||||
$contact = Contact::getRandomContact();
|
||||
|
||||
if (!empty($contact)) {
|
||||
$link = Contact::magicLinkByContact($contact);
|
||||
$a->redirect($link);
|
||||
$appHelper->redirect($link);
|
||||
}
|
||||
|
||||
DI::baseUrl()->redirect('profile');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue