Merge branch 'development' of https://github.com/PrestaShop/PrestaShop into development
This commit is contained in:
commit
d1904e7c56
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -1523,7 +1523,7 @@ class ToolsCore
|
|||||||
|
|
||||||
if (self::$_cache_nb_media_servers && ($id_media_server = (abs(crc32($filename)) % self::$_cache_nb_media_servers + 1)))
|
if (self::$_cache_nb_media_servers && ($id_media_server = (abs(crc32($filename)) % self::$_cache_nb_media_servers + 1)))
|
||||||
return constant('_MEDIA_SERVER_'.$id_media_server.'_');
|
return constant('_MEDIA_SERVER_'.$id_media_server.'_');
|
||||||
return Tools::getHttpHost();
|
return Tools::getShopDomain();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function generateHtaccess($path = null, $rewrite_settings = null, $cache_control = null, $specific = '', $disable_multiviews = null, $medias = false, $disable_modsec = null)
|
public static function generateHtaccess($path = null, $rewrite_settings = null, $cache_control = null, $specific = '', $disable_multiviews = null, $medias = false, $disable_modsec = null)
|
||||||
|
|||||||
@@ -479,8 +479,8 @@ class StockManagerCore implements StockManagerInterface
|
|||||||
$query->where('o.valid = 1 OR (os.id_order_state != '.(int)Configuration::get('PS_OS_ERROR').'
|
$query->where('o.valid = 1 OR (os.id_order_state != '.(int)Configuration::get('PS_OS_ERROR').'
|
||||||
AND os.id_order_state != '.(int)Configuration::get('PS_OS_CANCELED').')');
|
AND os.id_order_state != '.(int)Configuration::get('PS_OS_CANCELED').')');
|
||||||
$query->groupBy('od.id_order_detail');
|
$query->groupBy('od.id_order_detail');
|
||||||
//if (count($ids_warehouse))
|
if (count($ids_warehouse))
|
||||||
//$query->where('od.id_warehouse IN('.implode(', ', $ids_warehouse).')');
|
$query->where('od.id_warehouse IN('.implode(', ', $ids_warehouse).')');
|
||||||
$res = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($query);
|
$res = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($query);
|
||||||
$client_orders_qty = 0;
|
$client_orders_qty = 0;
|
||||||
if (count($res))
|
if (count($res))
|
||||||
@@ -658,4 +658,4 @@ class StockManagerCore implements StockManagerInterface
|
|||||||
return $stocks;
|
return $stocks;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user