// Optimization
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14557 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
f8f695c212
commit
d99b17903f
1 file changed
+6
-2
@@ -124,8 +124,12 @@ class ConfigurationCore extends ObjectModel
|
|||||||
'shop' => array(),
|
'shop' => array(),
|
||||||
);
|
);
|
||||||
|
|
||||||
// Do not remove (int) cast
|
if ($row['id_shop'])
|
||||||
Configuration::set($row['name'], array($lang => $row['value']), (int)$row['id_group_shop'], (int)$row['id_shop']);
|
self::$_CONF[$lang]['shop'][$row['id_shop']][$row['name']] = $row['value'];
|
||||||
|
else if ($row['id_shop_group'])
|
||||||
|
self::$_CONF[$lang]['group'][$row['id_shop_group']][$row['name']] = $row['value'];
|
||||||
|
else
|
||||||
|
self::$_CONF[$lang]['global'][$row['name']] = $row['value'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user