friendica_2021-01/mod/randprof.php
Hypolite Petovan 20043914e6 Move App to src
- Add `use Friendica\App;` wherever needed
2017-05-02 22:59:36 -04:00

16 lines
202 B
PHP

<?php
use Friendica\App;
function randprof_init(App $a) {
require_once('include/Contact.php');
$x = random_profile();
if ($x) {
goaway(zrl($x));
}
goaway(App::get_baseurl() . '/profile');
}