Release 0.255: migrate remaining Languages usages to repository DI

This commit is contained in:
2026-02-12 22:28:57 +01:00
parent 95c5fda989
commit 58a41691e6
25 changed files with 95 additions and 44 deletions

View File

@@ -242,7 +242,7 @@ class ShopProduct
return \Tpl::view( 'shop-product/product-edit', [
'product' => \admin\factory\ShopProduct::product_details( (int) \S::get( 'id' ) ),
'languages' => \admin\factory\Languages::languages_list(),
'languages' => ( new \Domain\Languages\LanguagesRepository( $GLOBALS['mdb'] ) )->languagesList(),
'categories' => \admin\factory\ShopCategory::subcategories( null ),
'layouts' => \admin\factory\Layouts::layouts_list(),
'products' => \admin\factory\ShopProduct::products_list(),