From: hickert Date: Mon, 29 Nov 2010 12:40:40 +0000 (+0000) Subject: Updated rendering of dateOfBirth attribute. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=21f3ea11482967a176d0ebe791d105a1276175ec;p=gosa.git Updated rendering of dateOfBirth attribute. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20406 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/generic/infoPage/class_infoPage.inc b/gosa-core/plugins/generic/infoPage/class_infoPage.inc index 129c38967..f88502bce 100644 --- a/gosa-core/plugins/generic/infoPage/class_infoPage.inc +++ b/gosa-core/plugins/generic/infoPage/class_infoPage.inc @@ -107,6 +107,12 @@ class infoPage extends plugin session::set('binary',$this->attrs['jpegPhoto'][0]); session::set('binarytype',"image/jpeg"); + + // Set date of birth + if(isset($this->attrs['dateOfBirth'][0])){ + $smarty->assign("dateOfBirth", date('d.m.Y',strtotime($this->attrs['dateOfBirth'][0]))); + } + $smarty->assign("rand", rand(0, 99999999)); $smarty->assign("personalInfoAllowed", $personalInfoAllowed); $smarty->assign("attrs", $this->attrs);