// Db::autoExecute() call are now replaced by Db::insert() or Db::update()

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12625 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-01-23 17:46:16 +00:00
parent a4d97911b1
commit 42eb6b476c
7 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -391,11 +391,11 @@ class InstallXmlLoader
{
foreach ($this->delayed_inserts as $entity => $queries)
{
$type = 'INSERT IGNORE';
$type = Db::INSERT_IGNORE;
if ($entity == 'access')
$type = 'REPLACE';
$type = Db::REPLACE;
if (!Db::getInstance()->autoExecute(_DB_PREFIX_.$entity, $queries, $type))
if (!Db::getInstance()->insert($entity, $queries, false, true, $type))
$this->setError($this->language->l('An SQL error occured for entity <i>%1$s</i>: <i>%2$s</i>', $entity, Db::getInstance()->getMsgError()));
unset($this->delayed_inserts[$entity]);
}