From 38e550d4818bf201f75837930ce7f4d992a9cc39 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Tue, 14 Aug 2012 13:30:59 +0000 Subject: [PATCH] // removed tmp file --- .../php/update_feature_detachable_cache.php~ | 50 ------------------- 1 file changed, 50 deletions(-) delete mode 100644 install-dev/upgrade/php/update_feature_detachable_cache.php~ diff --git a/install-dev/upgrade/php/update_feature_detachable_cache.php~ b/install-dev/upgrade/php/update_feature_detachable_cache.php~ deleted file mode 100644 index 7484f243b..000000000 --- a/install-dev/upgrade/php/update_feature_detachable_cache.php~ +++ /dev/null @@ -1,50 +0,0 @@ - -* @copyright 2007-2011 PrestaShop SA -* @version Release: $Revision: 8754 $ -* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -function update_feature_detachable_cache() -{ - if (!class_exists('Configuration', false)) - { - if (!class_exists('ObjectModel', false)) - { - require_once(_PS_CLASS_DIR_.'/ObjectModel.php'); - eval('class ObjectModel extends ObjectModelCore{}'); - - } - require_once(_PS_CLASS_DIR_.'/Configuration.php'); - eval('class Configuration extends ConfigurationCore{}'); - } - - 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)); - Configuration::updateGlobalValue('PS_CUSTOMIZATION_FEATURE_ACTIVE', (int)Customization::isCurrentlyUsed()); - Configuration::updateGlobalValue('PS_DISCOUNT_FEATURE_ACTIVE', (int)Discount::isCurrentlyUsed('discount', true)); - Configuration::updateGlobalValue('PS_GROUP_FEATURE_ACTIVE', (int)Group::isCurrentlyUsed()); - Configuration::updateGlobalValue('PS_PACK_FEATURE_ACTIVE', (int)Pack::isCurrentlyUsed()); - Configuration::updateGlobalValue('PS_ALIAS_FEATURE_ACTIVE', (int)Alias::isCurrentlyUsed('alias', true)); -}