[+] Project : adding Features detachables in order to improve performance

// clean code
This commit is contained in:
aFolletete
2011-09-03 17:21:32 +00:00
parent a4491c9897
commit 230bebc7c7
51 changed files with 1081 additions and 419 deletions
+3 -1
View File
@@ -100,6 +100,8 @@ class AttributeCore extends ObjectModel
*/
public static function getAttributes($id_lang, $notNull = false)
{
if (!Combination::isFeatureActive())
return array();
return Db::getInstance()->ExecuteS('
SELECT ag.*, agl.*, a.`id_attribute`, al.`name`, agl.`name` AS `attribute_group`
FROM `'._DB_PREFIX_.'attribute_group` ag
@@ -158,7 +160,7 @@ class AttributeCore extends ObjectModel
*
* @deprecated since 1.5.0
* @param array &$arr
* return bool
* @return bool
*/
public static function updateQtyProduct(&$arr)
{