]> git.mxchange.org Git - friendica.git/blobdiff - mod/randprof.php
Add Contact Object
[friendica.git] / mod / randprof.php
index bf9fa34256bde995a4f267bf3c9081ffa18616d8..79057b4955d00fb72f847d3b5684b5320c0881fd 100644 (file)
@@ -1,10 +1,17 @@
 <?php
 
+use Friendica\App;
+use Friendica\Core\System;
+use Friendica\Model\GlobalContact;
 
-function randprof_init(App &$a) {
+function randprof_init(App $a) {
        require_once('include/Contact.php');
+
        $x = random_profile();
-       if($x)
+
+       if ($x) {
                goaway(zrl($x));
-       goaway(App::get_baseurl() . '/profile');
+       }
+
+       goaway(System::baseUrl() . '/profile');
 }