]> git.mxchange.org Git - friendica.git/blobdiff - mod/randprof.php
Uncommon logger levels in Friendica (#5453)
[friendica.git] / mod / randprof.php
index 55b77aec8ba0304dd46b150735d50a9dec41d972..18bcb236f8a98504e94acbe860b41c2d2ee82e08 100644 (file)
@@ -1,16 +1,19 @@
 <?php
-
+/**
+ * @file mod/randprof.php
+ */
 use Friendica\App;
 use Friendica\Core\System;
-use Friendica\Model\GlobalContact;
-
-function randprof_init(App $a) {
-       require_once('include/Contact.php');
+use Friendica\Model\Contact;
+use Friendica\Model\GContact;
+use Friendica\Model\Profile;
 
-       $x = GlobalContact::getRandomUrl();
+function randprof_init(App $a)
+{
+       $x = GContact::getRandomUrl();
 
        if ($x) {
-               goaway(zrl($x));
+               goaway(Contact::magicLink($x));
        }
 
        goaway(System::baseUrl() . '/profile');