aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-12-22 21:13:24 +0000
committerThomas Willingham <founder@kakste.com>2013-12-22 21:13:24 +0000
commit2074bd0a3bf13a2d5d77f43489092a1230447213 (patch)
tree11fc4581070c076ed5e4ca24be54653530bb51b2 /include/identity.php
parent569e93d6e13e59528867b0a715b33f8f10610add (diff)
downloadvolse-hubzilla-2074bd0a3bf13a2d5d77f43489092a1230447213.tar.gz
volse-hubzilla-2074bd0a3bf13a2d5d77f43489092a1230447213.tar.bz2
volse-hubzilla-2074bd0a3bf13a2d5d77f43489092a1230447213.zip
Must have broken that in a merge - put it back
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/identity.php b/include/identity.php
index b44c77e6e..568eae8c0 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -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';
+}