X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FRandomProfile.php;h=111d92dc40d638ec3fcc1433f8932a4c9392301b;hb=8c44f535b7be361fb8080dc30d38ec61e019540b;hp=c5b31afeef2e176d7e264171a3f3cf1844e868ba;hpb=c961128416390dab45bd5bd88ec4bf7823394413;p=friendica.git diff --git a/src/Module/RandomProfile.php b/src/Module/RandomProfile.php index c5b31afeef..111d92dc40 100644 --- a/src/Module/RandomProfile.php +++ b/src/Module/RandomProfile.php @@ -1,8 +1,28 @@ . + * + */ namespace Friendica\Module; use Friendica\BaseModule; +use Friendica\DI; use Friendica\Model\Contact; use Friendica\Model\GContact; @@ -13,7 +33,7 @@ class RandomProfile extends BaseModule { public static function content(array $parameters = []) { - $a = self::getApp(); + $a = DI::app(); $contactUrl = GContact::getRandomUrl(); @@ -22,6 +42,6 @@ class RandomProfile extends BaseModule $a->redirect($link); } - $a->internalRedirect('profile'); + DI::baseUrl()->redirect('profile'); } }