Replace calls for App::redirect() with AppHelper

This commit is contained in:
Art4 2024-11-10 16:19:02 +00:00
parent 2c0db2f043
commit d87f24f17a
3 changed files with 6 additions and 6 deletions

View file

@ -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');