From c10fb24e31d8d1ad124adffc763e0862dd60cb88 Mon Sep 17 00:00:00 2001 From: rMalie Date: Fri, 5 Aug 2011 07:51:20 +0000 Subject: [PATCH] // Fix install of shop uri --- install-dev/php/create_multistore.php | 4 ++-- install-dev/xml/createDB.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/install-dev/php/create_multistore.php b/install-dev/php/create_multistore.php index 8922783fc..030fe642a 100755 --- a/install-dev/php/create_multistore.php +++ b/install-dev/php/create_multistore.php @@ -20,8 +20,8 @@ function create_multistore() $shop_domain = Tools::getHttpHost(); $shop_domain_ssl = Tools::getHttpHost(); } - $res &= Db::getInstance()->Execute('INSERT INTO `'._DB_PREFIX_.'shop_url` (`id_shop`, `domain`, `domain_ssl`, `uri`, `main`, `active`) - VALUES(1, \''.pSQL($shop_domain).'\', \''.pSQL($shop_domain_ssl).'\', \'\', 1, 1)'); + $res &= Db::getInstance()->Execute('INSERT INTO `'._DB_PREFIX_.'shop_url` (`id_shop`, `domain`, `domain_ssl`, `physical_uri`, `virtual_uri`, `main`, `active`) + VALUES(1, \''.pSQL($shop_domain).'\', \''.pSQL($shop_domain_ssl).'\',, \'\' \'\', 1, 1)'); // Stock conversion $sql = 'INSERT INTO `'._DB_PREFIX_.'.stock` (`id_product`, `id_product_attribute`, `id_group_shop`, `id_shop`, `quantity`) diff --git a/install-dev/xml/createDB.php b/install-dev/xml/createDB.php index d29673028..f2c33c209 100644 --- a/install-dev/xml/createDB.php +++ b/install-dev/xml/createDB.php @@ -182,7 +182,7 @@ switch (_DB_TYPE_) { die(''."\n"); } } - $db_data_settings .= "\n".'INSERT INTO `PREFIX_shop_url` (`id_shop`, `domain`, `domain_ssl`, `uri`, `main`, `active`) VALUES(1, \''.pSQL(Tools::getHttpHost()).'\', \''.pSQL(Tools::getHttpHost()).'\', \'\', 1, 1);'; + $db_data_settings .= "\n".'INSERT INTO `PREFIX_shop_url` (`id_shop`, `domain`, `domain_ssl`, `physical_uri`, `virtual_uri`, `main`, `active`) VALUES(1, \''.pSQL(Tools::getHttpHost()).'\', \''.pSQL(Tools::getHttpHost()).'\', \'\', \'\', 1, 1);'; $db_data_settings .= "\n".'UPDATE `PREFIX_customer` SET `passwd` = \''.md5(_COOKIE_KEY_.'123456789').'\' WHERE `id_customer` =1;'; $db_data_settings .= "\n".'INSERT INTO `PREFIX_configuration` (name, value, date_add, date_upd) VALUES (\'PS_VERSION_DB\', \'' . INSTALL_VERSION . '\', NOW(), NOW());'; $db_data_settings = str_replace(array($filePrefix, $engineType), array($_GET['tablePrefix'], $_GET['engine']), $db_data_settings);