Usunięcie nieużywanych plików konfiguracyjnych i CSS z menedżera plików oraz uproszczenie przetwarzania wartości w klasach ShopProduct, Settings, Users, ShopPromotion, ShopCoupon, ShopProductSets i Dictionaries.
This commit is contained in:
@@ -13,17 +13,7 @@ class Users
|
||||
|
||||
public static function user_save()
|
||||
{
|
||||
$values_tmp = json_decode( \S::get( 'values' ), true );
|
||||
|
||||
$values = [];
|
||||
|
||||
foreach ( $values_tmp as $item )
|
||||
{
|
||||
$name = $item['name'];
|
||||
$value = $item['value'];
|
||||
$keys = \S::parse_name( $name );
|
||||
\S::set_array_value( $values, $keys, $value );
|
||||
}
|
||||
$values = json_decode( \S::get( 'values' ), true );
|
||||
|
||||
$response = \admin\factory\Users::user_save( $values['id'], $values['login'], $values['status'], $values['password'], $values['password_re'], $values['admin'] );
|
||||
echo json_encode( $response );
|
||||
|
||||
Reference in New Issue
Block a user