Update function calls
update function calls to use profile class
This commit is contained in:
parent
4cfa46186a
commit
4fb2547df8
45 changed files with 360 additions and 294 deletions
|
|
@ -1,14 +1,18 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file mod/randprof.php
|
||||
*/
|
||||
use Friendica\App;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Model\GContact;
|
||||
use Friendica\Model\Profile;
|
||||
|
||||
function randprof_init(App $a) {
|
||||
function randprof_init(App $a)
|
||||
{
|
||||
$x = GContact::getRandomUrl();
|
||||
|
||||
if ($x) {
|
||||
goaway(zrl($x));
|
||||
goaway(Profile::zrl($x));
|
||||
}
|
||||
|
||||
goaway(System::baseUrl() . '/profile');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue