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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12596 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-01-23 10:21:51 +00:00
parent 08a13fcc92
commit ebec527630
32 changed files with 569 additions and 427 deletions
+2 -2
View File
@@ -245,7 +245,7 @@ abstract class InstallFixtures
@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 "%s"', $id.'-'.$type['name']));
}
}
@@ -280,7 +280,7 @@ abstract class InstallFixtures
@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 "%s"', $id.'-'.$type['name']));
}
}