Release 0.255: migrate remaining Languages usages to repository DI
This commit is contained in:
@@ -62,7 +62,7 @@ class ShopAttribute
|
||||
|
||||
\admin\factory\ShopProduct::update_product_price_by_attribute_value_impact( $ids[$main_language][$i], $impact_on_the_price[$i] );
|
||||
|
||||
$langs = \admin\factory\Languages::languages_list();
|
||||
$langs = ( new \Domain\Languages\LanguagesRepository( $mdb ) )->languagesList();
|
||||
|
||||
foreach ( $langs as $lang )
|
||||
{
|
||||
@@ -108,7 +108,7 @@ class ShopAttribute
|
||||
if ( $impact_on_the_price[$i] )
|
||||
\admin\factory\ShopProduct::update_product_price_by_attribute_value_impact( $value_id, \S::normalize_decimal( $impact_on_the_price[$i] ) );
|
||||
|
||||
$langs = \admin\factory\Languages::languages_list();
|
||||
$langs = ( new \Domain\Languages\LanguagesRepository( $mdb ) )->languagesList();
|
||||
if ( \S::is_array_fix( $langs ) ) foreach ( $langs as $lang )
|
||||
{
|
||||
if ( $names[$lang['id']][$i] )
|
||||
|
||||
Reference in New Issue
Block a user