<?php
+use Friendica\App;
+use Friendica\Core\System;
+use Friendica\Model\GContact;
-function randprof_init(&$a) {
- require_once('include/Contact.php');
-
- $x = random_profile();
+function randprof_init(App $a) {
+ $x = GContact::getRandomUrl();
if ($x) {
goaway(zrl($x));
}
- goaway(App::get_baseurl() . '/profile');
+ goaway(System::baseUrl() . '/profile');
}