Code

Updated user plugin
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 Apr 2010 09:14:52 +0000 (09:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 Apr 2010 09:14:52 +0000 (09:14 +0000)
-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

index 41bf63842a9f1012a911f1caccbe442f6cd5fcf1..b4bf4cf7e8e295e512be307cb9c2c460d27c971d 100644 (file)
@@ -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;
   }