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');
|
|
}
|
|
}
|