// adding configuration when upgrade to the three new groups
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10991 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -37,5 +37,10 @@ function add_new_groups($french, $standard)
|
||||
else
|
||||
$sql .= '('.(int)$last_id.', '.(int)$lang['id_lang'].', "'.pSQL($standard).'"),';
|
||||
$sql = substr($sql, 0, strlen($sql) - 1);
|
||||
DB::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'group_lang` (`id_group`, `id_lang`, `name`) VALUES '.$sql);
|
||||
Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'group_lang` (`id_group`, `id_lang`, `name`) VALUES '.$sql);
|
||||
// we add the different id_group in the configuration
|
||||
if (strtolower($standard) == 'unidentified')
|
||||
Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'configuration` (`id_configuration`, `name`, `value`, `date_add`, `date_upd) VALUES (NULL, "PS_UNIDENTIFIED_GROUP", "'.(int)$last_id.'", NOW(), NOW())');
|
||||
else if (strtolower($standard) == 'guest')
|
||||
Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'configuration` (`id_configuration`, `name`, `value`, `date_add`, `date_upd) VALUES (NULL, "PS_GUEST_GROUP", "'.(int)$last_id.'", NOW(), NOW())');
|
||||
}
|
||||
Reference in New Issue
Block a user