mirror of
https://github.com/friendica/friendica
synced 2024-12-23 08:00:16 +00:00
db949bb802
Only define functions if they have not been defined before, e.g. in themes. This makes it possible to override parts of a module and still use the other functions.
11 lines
212 B
PHP
11 lines
212 B
PHP
<?php
|
|
|
|
if(! function_exists('randprof_init')) {
|
|
function randprof_init(&$a) {
|
|
require_once('include/Contact.php');
|
|
$x = random_profile();
|
|
if($x)
|
|
goaway(zrl($x));
|
|
goaway($a->get_baseurl() . '/profile');
|
|
}
|
|
}
|