using image type for hotel images and using standard size fr other images

This commit is contained in:
Shreesh Arora
2022-10-12 11:46:51 +05:30
committed by Shreesh Arora
parent b57126874c
commit fc3912d24e
21 changed files with 429 additions and 234 deletions

View File

@@ -1692,8 +1692,8 @@ abstract class ObjectModelCore implements Core_Foundation_Database_EntityInterfa
$types = ImageType::getImagesTypes();
foreach ($types as $image_type) {
if ($this->image_name) { // by webkul
if (file_exists($this->image_dir.$this->id.'-'.stripslashes($image_type['name']).'.'.$this->image_format)
&& !unlink($this->image_dir.$this->id.'-'.stripslashes($image_type['name']).'.'.$this->image_format)) {
if (file_exists($this->image_dir.$this->image_name.'-'.stripslashes($image_type['name']).'.'.$this->image_format)
&& !unlink($this->image_dir.$this->image_name.'-'.stripslashes($image_type['name']).'.'.$this->image_format)) {
return false;
}
} else {