Code

Added mirror url support
[gosa.git] / plugins / admin / applications / class_applicationGeneric.inc
index 1dc42b8902671d68d798d19f89e9c109e3bd35df..34ab301b7394030bafc1a9162983469c9db5c90a 100644 (file)
@@ -38,7 +38,8 @@ class application extends plugin
        if ($this->iconData == ""){
                $this->set_picture("");
        }
-       $_SESSION['picture']= $this->iconData;
+       $_SESSION['binary']= $this->iconData;
+       $_SESSION['binarytype']= "image/jpeg";
        $this->gosaApplicationIcon= $this->iconData;
 
        /* This is always an account */
@@ -370,7 +371,8 @@ class application extends plugin
        if (file_exists($filename)){
                $fd = fopen ($filename, "rb");
                $this->iconData= fread ($fd, filesize ($filename));
-               $_SESSION['picture']= $this->iconData;
+               $_SESSION['binary']= $this->iconData;
+               $_SESSION['binarytype']= "image/jpeg";
                $this->gosaApplicationIcon= $this->iconData;
 
                fclose ($fd);