ver. 0.251 - migrate Dictionaries to Domain/Controller and remove legacy classes
This commit is contained in:
@@ -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
|
||||
] );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user