From 0f333263dfe705d01dbba76a066afaa2bc6b923f Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 18 May 2006 06:26:10 +0000 Subject: [PATCH] Removed - from year and month selection, fixed year calculation git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3399 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/generic/class_user.inc | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index 472eddbd0..0040b745f 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -228,23 +228,16 @@ class user extends plugin for($d= 1; $d<32; $d++){ $days[$d]= $d; } - $years= array(); - - if(($date['year']-100)<1901){ - $start = 1901; - }else{ - $start = $date['year']-100; - } - - $end = $start +100; + $years = array(); + $start = date("Y") - 100; + $end = $start +100; for($y= $start; $y<=$end; $y++){ $years[]= $y; } - $years['-']= "- "; $months= array(_("January"), _("February"), _("March"), _("April"), _("May"), _("June"), _("July"), _("August"), _("September"), - _("October"), _("November"), _("December"), '-' => '- '); + _("October"), _("November"), _("December")); $smarty->assign("day", $date["mday"]); $smarty->assign("days", $days); $smarty->assign("months", $months); -- 2.30.2