From 80cea26c0666b83d2408b10167af92f183953d59 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 28 Apr 2010 09:14:52 +0000 Subject: [PATCH] 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 --- gosa-core/plugins/personal/generic/class_user.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; } -- 2.30.2