mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 07:15:13 +00:00
Must have broken that in a merge - put it back
This commit is contained in:
parent
569e93d6e1
commit
2074bd0a3b
1 changed files with 17 additions and 0 deletions
|
@ -1109,3 +1109,20 @@ function get_theme_uid() {
|
||||||
}
|
}
|
||||||
return $uid;
|
return $uid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @function get_default_profile_photo($size = 175)
|
||||||
|
* Retrieves the path of the default_profile_photo for this system
|
||||||
|
* with the specified size.
|
||||||
|
* @param int $size
|
||||||
|
* one of (175, 80, 48)
|
||||||
|
* @returns string
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
function get_default_profile_photo($size = 175) {
|
||||||
|
$scheme = get_config('system','default_profile_photo');
|
||||||
|
if(! $scheme)
|
||||||
|
$scheme = 'rainbow_man';
|
||||||
|
return 'images/default_profile_photos/' . $scheme . '/' . $size . '.jpg';
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue