From c6d2e1252e1757478339009ec7b48320b1ccd92a Mon Sep 17 00:00:00 2001 From: gRoussac Date: Mon, 2 Sep 2013 16:28:38 +0200 Subject: [PATCH] [-] INSTALLER : Fix fatal error in upgrade, could not load configuration class --- install-dev/upgrade/php/block_category_1521.php | 2 +- install-dev/upgrade/php/fix_download_product_feature_active.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install-dev/upgrade/php/block_category_1521.php b/install-dev/upgrade/php/block_category_1521.php index c6b1846f7..a132475ed 100644 --- a/install-dev/upgrade/php/block_category_1521.php +++ b/install-dev/upgrade/php/block_category_1521.php @@ -31,6 +31,6 @@ function block_category_1521() (`id_configuration` ,`id_shop_group` ,`id_shop` ,`name` ,`value` ,`date_add` ,`date_upd`) VALUES (NULL, NULL, NULL, \'BLOCK_CATEG_MAX_DEPTH\', 4, NOW(), NOW())'); else if ($maxdepth = (int)Db::getInstance()->getValue('SELECT FROM `'._DB_PREFIX_.'configuration` WHERE `value` IS NOT NULL AND `value` <> 0')) - Db::getInstance()->Execute('UPDATE `'._DB_PREFIX_.'configuration` SET `value` = '.($maxdepth + 1).' WHERE `name` LIKE\'BLOCK_CATEG_MAX_DEPTH\''); + Db::getInstance()->Execute('UPDATE `'._DB_PREFIX_.'configuration` SET `value` = '.($maxdepth + 1).' WHERE `name` LIKE \'BLOCK_CATEG_MAX_DEPTH\''); } \ No newline at end of file diff --git a/install-dev/upgrade/php/fix_download_product_feature_active.php b/install-dev/upgrade/php/fix_download_product_feature_active.php index 6074f8ce3..c8ffc103f 100644 --- a/install-dev/upgrade/php/fix_download_product_feature_active.php +++ b/install-dev/upgrade/php/fix_download_product_feature_active.php @@ -27,5 +27,5 @@ function fix_download_product_feature_active() { if (Db::getInstance()->getValue('SELECT COUNT(id_product_download) FROM `'._DB_PREFIX_.'product_download` WHERE `active` = 1 ;') > 0) - Configuration::updateGlobalValue('PS_VIRTUAL_PROD_FEATURE_ACTIVE', 1); + Db::getInstance()->execute('UPDATE `'._DB_PREFIX_.'configuration` SET `value` = 1 WHERE `name` LIKE \'PS_VIRTUAL_PROD_FEATURE_ACTIVE\''); } \ No newline at end of file