From: hickert Date: Wed, 28 Apr 2010 09:14:52 +0000 (+0000) Subject: Updated user plugin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=80cea26c0666b83d2408b10167af92f183953d59;p=gosa.git Updated user plugin -Include user picture in copy&paste git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17902 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index 41bf63842..b4bf4cf7e 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -1645,15 +1645,17 @@ class user extends plugin /* Generate dateOfBirth entry */ if (isset ($source['dateOfBirth'])){ - - /* This entry is ISO 8601 conform */ list($year, $month, $day)= explode("-", $source['dateOfBirth'][0], 3); - -#TODO: use $lang to convert date $this->dateOfBirth= "$day.$month.$year"; } else { $this->dateOfBirth= ""; } + + // Try to load the user picture + $tmp_dn = $this->dn; + $this->dn = $source['dn']; + $this->load_picture(); + $this->dn = $tmp_dn; }