From acaca2f32706964380e82216797f985bd5bb98ca 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 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16755 b9a71923-0436-4b27-9f14-aed3839534dd --- 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