[*] Classes : images.inc.php functions are now all deprecated, use the new class ImageManager instead

This commit is contained in:
rMalie
2012-01-23 10:21:51 +00:00
parent 6f98c3b8f5
commit 84f4d0838c
32 changed files with 569 additions and 427 deletions
+2 -2
View File
@@ -559,7 +559,7 @@ class InstallXmlLoader
@chmod($target_file, 0644);
}
// Resize the image if no cache was prepared in fixtures
else if (!imageResize($from_path.$identifier.'.'.$extension, $target_file, $type['width'], $type['height']))
else if (!ImageManager::resize($from_path.$identifier.'.'.$extension, $target_file, $type['width'], $type['height']))
$this->setError($this->language->l('Cannot create image "%1$s" for entity "%2$s"', $identifier.'-'.$type['name'], $entity));
}
}
@@ -626,7 +626,7 @@ class InstallXmlLoader
@chmod($target_file, 0644);
}
// Resize the image if no cache was prepared in fixtures
else if (!imageResize($path.$id.'.jpg', $target_file, $type['width'], $type['height']))
else if (!ImageManager::resize($path.$id.'.jpg', $target_file, $type['width'], $type['height']))
$this->setError($this->language->l('Cannot create image "%1$s" for entity "%2$s"', $identifier.'-'.$type['name'], 'product'));
}
}