]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/RandomProfile.php
Remove uses of profile.marital
[friendica.git] / src / Module / RandomProfile.php
index c5b31afeef2e176d7e264171a3f3cf1844e868ba..c14e9f6cacbe5af7286205d484c1a91e6442e832 100644 (file)
@@ -3,6 +3,7 @@
 namespace Friendica\Module;
 
 use Friendica\BaseModule;
+use Friendica\DI;
 use Friendica\Model\Contact;
 use Friendica\Model\GContact;
 
@@ -13,7 +14,7 @@ class RandomProfile extends BaseModule
 {
        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');
        }
 }