Must have broken that in a merge - put it back

This commit is contained in:
Thomas Willingham 2013-12-22 21:13:24 +00:00
parent 569e93d6e1
commit 2074bd0a3b

View file

@ -1109,3 +1109,20 @@ function get_theme_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';
}