diff options
author | friendica <info@friendica.com> | 2013-06-30 00:38:02 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-06-30 00:38:02 -0700 |
commit | 72f6edd59507797ef4073aed01ca1a0d14fa8cfd (patch) | |
tree | add1a2879d2a2ca7c7b62ece73517bbf225f2cb9 /mod | |
parent | 29502438f807275ab8ea8259ca261117e561c962 (diff) | |
download | volse-hubzilla-72f6edd59507797ef4073aed01ca1a0d14fa8cfd.tar.gz volse-hubzilla-72f6edd59507797ef4073aed01ca1a0d14fa8cfd.tar.bz2 volse-hubzilla-72f6edd59507797ef4073aed01ca1a0d14fa8cfd.zip |
add age to directory profile - requires updating on each birthday and that part is still missing
Diffstat (limited to 'mod')
-rw-r--r-- | mod/zfinger.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/zfinger.php b/mod/zfinger.php index 460f157b6..d438940a1 100644 --- a/mod/zfinger.php +++ b/mod/zfinger.php @@ -91,6 +91,9 @@ function zfinger_init(&$a) { $profile['birthday'] = $p[0]['dob']; if($profile['birthday'] != '0000-00-00') $profile['next_birthday'] = z_birthday($p[0]['dob'],$e['channel_timezone']); + + if($age = age($p[0]['dob'],$e['channel_timezone'],'')) + $profile['age'] = $age; $profile['gender'] = $p[0]['gender']; $profile['marital'] = $p[0]['marital']; $profile['sexual'] = $p[0]['sexual']; |