ver. 0.251 - migrate Dictionaries to Domain/Controller and remove legacy classes

This commit is contained in:
2026-02-10 00:04:32 +01:00
parent 3bab9f9e8a
commit fe4e98d9bd
17 changed files with 788 additions and 307 deletions

View File

@@ -230,7 +230,7 @@ class ShopProduct
// edycja produktu
public static function product_edit() {
global $user;
global $user, $mdb;
if ( !$user ) {
header( 'Location: /admin/' );
@@ -249,7 +249,7 @@ class ShopProduct
'dlang' => \front\factory\Languages::default_language(),
'sets' => \shop\ProductSet::sets_list(),
'producers' => \admin\factory\ShopProducer::all(),
'units' => \admin\factory\Dictionaries::all_units(),
'units' => ( new \Domain\Dictionaries\DictionariesRepository( $mdb ) ) -> allUnits(),
'user' => $user
] );
}