chg: [viewPicture] Added comments

pull/4441/head
mokaddem 2019-04-09 14:00:36 +02:00
parent 303b584c56
commit dec3fd8808
1 changed files with 1 additions and 2 deletions

View File

@ -1684,7 +1684,6 @@ class Attribute extends AppModel
} else {
$data = $this->getAttachment($attribute['Attribute']);
if ($extension == 'gif') {
// $image_data = base64_decode($data);
$image_data = $data;
} else {
$image = ImageCreateFromString($data);
@ -1698,7 +1697,7 @@ class Attribute extends AppModel
imagedestroy($image);
imagedestroy($imageTC);
}
// save thumbnail
// save thumbnail for later reuse
$attribute['Attribute']['data'] = $image_data;
$this->saveAttachment($attribute['Attribute'], '_thumbnail');
}