[-] Installer : no more sql or php error when upgrade. ( @todo update_feature_detachable_cache )

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12241 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2012-01-06 16:27:42 +00:00
parent 9cd20fedb1
commit e6a58a51d8
10 changed files with 163 additions and 76 deletions
@@ -27,6 +27,11 @@
function update_feature_detachable_cache()
{
// $array_features = arary(
// 'specific_price', 'scene',
// 'product_download', 'customization_field', 'cart_rule',
// 'group', 'pack', 'alias');
Configuration::updateGlobalValue('PS_SPECIFIC_PRICE_FEATURE_ACTIVE', (int)SpecificPrice::isCurrentlyUsed('specific_price'));
Configuration::updateGlobalValue('PS_SCENE_FEATURE_ACTIVE', (int)Scene::isCurrentlyUsed('scene', true));
Configuration::updateGlobalValue('PS_VIRTUAL_PROD_FEATURE_ACTIVE', (int)ProductDownload::isCurrentlyUsed('product_download', true));