Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[-] INSTALLER : Fix bug #PSCFV-8167 bad drop of non-existent index an…

…d correct genders image copy
  • Loading branch information...
commit fec2866be6d83b14854ed06ea6fcf61bac491494 1 parent 8e98267
Gregory Roussac authored March 25, 2013
16  install-dev/upgrade/php/update_genders_images.php
@@ -26,12 +26,12 @@
26 26
 
27 27
 function update_genders_images()
28 28
 {
29  
-	if (file_exists(_PS_IMG_DIR_.'genders/Mr.jpg'))
30  
-		@rename(_PS_IMG_DIR_.'genders/Mr.jpg', _PS_IMG_DIR_.'genders/1.jpg');
31  
-	if (file_exists(_PS_IMG_DIR_.'genders/Ms.jpg'))
32  
-		@rename(_PS_IMG_DIR_.'genders/Ms.jpg', _PS_IMG_DIR_.'genders/2.jpg');
33  
-	if (file_exists(_PS_IMG_DIR_.'genders/Miss.jpg'))
34  
-		@rename(_PS_IMG_DIR_.'genders/Miss.jpg', _PS_IMG_DIR_.'genders/3.jpg');
35  
-	if (file_exists(_PS_IMG_DIR_.'genders/unknown.jpg'))
36  
-		@rename(_PS_IMG_DIR_.'unknown.jpg', _PS_IMG_DIR_.'Unknown.jpg');	
  29
+	if (file_exists(_PS_ROOT_DIR_.'/img/genders/Mr.jpg'))
  30
+		@rename(_PS_ROOT_DIR_.'/img/genders/Mr.jpg', _PS_ROOT_DIR_.'/img/genders/1.jpg');
  31
+	if (file_exists(_PS_ROOT_DIR_.'/img/genders/Ms.jpg'))
  32
+		@rename(_PS_ROOT_DIR_.'/img/genders/Ms.jpg', _PS_ROOT_DIR_.'/img/genders/2.jpg');
  33
+	if (file_exists(_PS_ROOT_DIR_.'/img/genders/Miss.jpg'))
  34
+		@rename(_PS_ROOT_DIR_.'/img/genders/Miss.jpg', _PS_ROOT_DIR_.'/img/genders/3.jpg');
  35
+	if (file_exists(_PS_ROOT_DIR_.'genders/unknown.jpg'))
  36
+		@rename(_PS_ROOT_DIR_.'/img/genders/unknown.jpg', _PS_ROOT_DIR_.'/img/genders/Unknown.jpg');	
37 37
 }
2  install-dev/upgrade/sql/1.5.1.0.sql
@@ -16,5 +16,5 @@ ALTER TABLE `PREFIX_order_carrier` CHANGE `weight` `weight` DECIMAL(20, 6) NOT N
16 16
 ALTER TABLE `PREFIX_attribute_impact` CHANGE `weight` `weight` DECIMAL(20, 6) NOT NULL DEFAULT '0';
17 17
 ALTER TABLE `PREFIX_order_detail` CHANGE `product_weight` `product_weight` DECIMAL(20, 6) NOT NULL DEFAULT '0';
18 18
 ALTER TABLE `PREFIX_stock_available` DROP INDEX `product_sqlstock`;
19  
-ALTER TABLE `PREFIX_stock_available` ADD UNIQUE (`id_product`, `id_product_attribute`, `id_shop`);
  19
+ALTER TABLE `PREFIX_stock_available` ADD UNIQUE `product_sqlstock` (`id_product`, `id_product_attribute`, `id_shop`);
20 20
 ALTER TABLE `PREFIX_cms` ADD INDEX (`id_cms_category`);

0 notes on commit fec2866

Please sign in to comment.
Something went wrong with that request. Please try again.