]> git.mxchange.org Git - friendica.git/blobdiff - mod/randprof.php
Removed unused template variable
[friendica.git] / mod / randprof.php
index 53d7425e962a164d4f047ca837c1a7cc822d1768..f835780e07146c9c4fac97f7f01bd102a8598e75 100644 (file)
@@ -1,10 +1,16 @@
 <?php
 
+use Friendica\App;
+use Friendica\Core\System;
 
-function randprof_init(&$a) {
+function randprof_init(App $a) {
        require_once('include/Contact.php');
+
        $x = random_profile();
-       if($x)
-               goaway($x);
-       goaway($a->get_baseurl() . '/profile');
+
+       if ($x) {
+               goaway(zrl($x));
+       }
+
+       goaway(System::baseUrl() . '/profile');
 }