From 538e0d8ea8f83fbfce7f38b7f64e31ffca5e4ee1 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Wed, 8 Aug 2012 07:06:44 +0000 Subject: [PATCH] // Fixed update mistake #PSCFV-3560 --- install-dev/upgrade/php/p15015_blockadvertising_extension.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install-dev/upgrade/php/p15015_blockadvertising_extension.php b/install-dev/upgrade/php/p15015_blockadvertising_extension.php index 580d718d9..af1d5eddb 100644 --- a/install-dev/upgrade/php/p15015_blockadvertising_extension.php +++ b/install-dev/upgrade/php/p15015_blockadvertising_extension.php @@ -31,6 +31,8 @@ function p15015_blockadvertising_extension() if (file_exists(_PS_MODULE_DIR_.'blockadvertising')) foreach (scandir(_PS_MODULE_DIR_.'blockadvertising') as $file) if (in_array($file, array('advertising.jpg', 'advertising.gif', 'advertising.png'))) - Configuration::updateGlobalValue('BLOCKADVERT_IMG_EXT', substr($file, strrpos($file, '.') + 1)); + Db::getInstance()->execute(' + REPLACE INTO `'._DB_PREFIX_.'configuration` (name, value) + VALUES ("BLOCKADVERT_IMG_EXT", "'.pSQL(substr($file, strrpos($file, '.') + 1)).'"'); return true; } \ No newline at end of file