X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FRandomProfile.php;h=c14e9f6cacbe5af7286205d484c1a91e6442e832;hb=e69497454b062305db904a4cd4bcae3453de7a48;hp=3ecaa54b7607bc51f32099997380cd47defc64bc;hpb=c1f99c70b1c7d62120723f3b142e843ba25ab338;p=friendica.git diff --git a/src/Module/RandomProfile.php b/src/Module/RandomProfile.php index 3ecaa54b76..c14e9f6cac 100644 --- a/src/Module/RandomProfile.php +++ b/src/Module/RandomProfile.php @@ -3,6 +3,7 @@ namespace Friendica\Module; use Friendica\BaseModule; +use Friendica\DI; use Friendica\Model\Contact; use Friendica\Model\GContact; @@ -11,9 +12,9 @@ use Friendica\Model\GContact; */ class RandomProfile extends BaseModule { - public static function content() + public static function content(array $parameters = []) { - $a = self::getApp(); + $a = DI::app(); $contactUrl = GContact::getRandomUrl(); @@ -22,6 +23,6 @@ class RandomProfile extends BaseModule $a->redirect($link); } - $a->internalRedirect('profile'); + DI::baseUrl()->redirect('profile'); } }