Release 0.255: migrate remaining Languages usages to repository DI
This commit is contained in:
@@ -802,7 +802,7 @@ class ShopProduct
|
||||
|
||||
if ( $id )
|
||||
{
|
||||
$langs = \admin\factory\Languages::languages_list( true );
|
||||
$langs = ( new \Domain\Languages\LanguagesRepository( $mdb ) )->languagesList( true );
|
||||
foreach ( $langs as $lg )
|
||||
{
|
||||
$mdb -> insert( 'pp_shop_products_langs', [
|
||||
@@ -1009,7 +1009,7 @@ class ShopProduct
|
||||
|
||||
\admin\factory\ShopProduct::update_product_combinations_prices( $product_id, $price_brutto, $vat, $price_brutto_promo );
|
||||
|
||||
$langs = \admin\factory\Languages::languages_list( true );
|
||||
$langs = ( new \Domain\Languages\LanguagesRepository( $mdb ) )->languagesList( true );
|
||||
foreach ( $langs as $lg )
|
||||
{
|
||||
if ( $translation_id = $mdb -> get( 'pp_shop_products_langs', 'id', [ 'AND' => [ 'product_id' => $product_id, 'lang_id' => $lg['id'] ] ] ) )
|
||||
|
||||
Reference in New Issue
Block a user