Merge branch 'development' of https://github.com/PrestaShop/PrestaShop into development

This commit is contained in:
Rémi Gaillard
2013-02-05 15:28:28 +01:00
3 changed files with 16 additions and 1 deletions
+12
View File
@@ -367,6 +367,18 @@ class ImageCore extends ObjectModel
');
return self::$_cacheGetSize[$type];
}
public static function getWidth($params, &$smarty)
{
$result = self::getSize($params['type']);
return $result['width'];
}
public static function getHeight($params, &$smarty)
{
$result = self::getSize($params['type']);
return $result['height'];
}
/**
* Clear all images in tmp dir
+1 -1
View File
@@ -389,7 +389,7 @@ abstract class ObjectModelCore
return (int)$value;
case self::TYPE_FLOAT :
return (float)$value;
return (float)str_replace(',', '.', $value);
case self::TYPE_DATE :
if (!$value)