// Fixed update mistake #PSCFV-3560

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16755 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-08-08 07:06:44 +00:00
parent a5d3dfed09
commit acaca2f327
@@ -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;
}