]> git.mxchange.org Git - friendica.git/blobdiff - mod/randprof.php
added spaces + curly braces
[friendica.git] / mod / randprof.php
index e9e0a8e7bb1e56e0dbb76f2a305fa960d4db5fe8..b208eeef29421a6484778248daaeb6cedfd9e776 100644 (file)
@@ -1,11 +1,14 @@
 <?php
 
-if(! function_exists('randprof_init')) {
+
 function randprof_init(&$a) {
        require_once('include/Contact.php');
+
        $x = random_profile();
-       if($x)
+
+       if ($x) {
                goaway(zrl($x));
-       goaway($a->get_baseurl() . '/profile');
-}
+       }
+
+       goaway(App::get_baseurl() . '/profile');
 }