Code

Moved default.JPG intop plugins/users/images.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 Jul 2008 10:51:06 +0000 (10:51 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 Jul 2008 10:51:06 +0000 (10:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11798 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/plugins/users/default.jpg [new file with mode: 0644]
gosa-core/plugins/personal/generic/class_user.inc
gosa-core/plugins/personal/generic/generic.tpl
gosa-core/plugins/personal/generic/multiple_generic.tpl

diff --git a/gosa-core/html/plugins/users/default.jpg b/gosa-core/html/plugins/users/default.jpg
new file mode 100644 (file)
index 0000000..c20b084
Binary files /dev/null and b/gosa-core/html/plugins/users/default.jpg differ
index dd60b93f0ac55987f0c884ea15c0622e80ed508f..1446d1f009bff740810bb5223626c5d859be73c2 100644 (file)
@@ -1267,7 +1267,7 @@ class user extends plugin
     if((!$data) || ($data == "*removed*")){ 
 
       /* In case we don't get an entry, load a default picture */
-      $this->set_picture ();//"./images/default.jpg");
+      $this->set_picture ();
       $this->jpegPhoto= "*removed*";
     }else{
 
@@ -1320,7 +1320,7 @@ class user extends plugin
   function set_picture($filename ="")
   {
     if (!is_file($filename) || $filename =="" ){
-      $filename= "./images/default.jpg";
+      $filename= "./plugins/users/images/default.jpg";
       $this->jpegPhoto= "*removed*";
     }
 
@@ -1445,7 +1445,7 @@ class user extends plugin
     /* Remove picture? */
     if (isset($_POST['picture_remove'])){
       $this->jpegPhoto= "*removed*";
-      $this->set_picture ("./images/default.jpg");
+      $this->set_picture ("./plugins/users/images/default.jpg");
       $this->is_modified= TRUE;
     }
 
index c3bd485043c132baf6fe26545b5604679f3f0e2c..5706d15259b44ea5698e916c23e772a28cc3488c 100644 (file)
@@ -17,7 +17,7 @@
           <tr>
                <td width="147" height="200" bgcolor="gray">
                {if !$userPicture_is_readable}
-                       <img class='center' border="0" width="100%" src="images/default.jpg" alt="{t}Personal picture{/t}">
+                       <img class='center' border="0" width="100%" src="plugins/users/images/default.jpg" alt="{t}Personal picture{/t}">
                {else}
                        <img class='center' border="0" width="100%" src="getbin.php?rand={$rand}" alt="{t}Personal picture{/t}">
                {/if}
index b1de93432540507d6e65a5e75660faa9ca845cb4..b29ea4a8ce3b0253e960476ee26d5b4f0d112cff 100644 (file)
@@ -10,7 +10,7 @@
    <table>
     <tr>
      <td width="147" height="200" bgcolor="gray">
-      <img class='center' border="0" width="100%" src="images/default.jpg" alt="{t}Personal picture{/t}">
+      <img class='center' border="0" width="100%" src="plugins/users/images/default.jpg" alt="{t}Personal picture{/t}">
      </td>
     </tr>
    </table>