diff --git a/wp-content/themes/cosmopet/modules/forms/module-ajax-controller.php b/wp-content/themes/cosmopet/modules/forms/module-ajax-controller.php index 2eca41f..f90db5c 100644 --- a/wp-content/themes/cosmopet/modules/forms/module-ajax-controller.php +++ b/wp-content/themes/cosmopet/modules/forms/module-ajax-controller.php @@ -355,7 +355,7 @@ function notify_order_paid($order_id) { $handler = FormHandlerFactory::getHandler(['tg']); $handler->handle($formData, []); global $site_env; - if ($site_env->site_revion == 'ru'){ + if ($site_env->site_region == 'ru'){ $b24Handler = new b24Handler(); $b24Handler->b24_update_deal_stage_by_order_id($order_id); } diff --git a/wp-content/themes/cosmopet/modules/forms/module-controller.php b/wp-content/themes/cosmopet/modules/forms/module-controller.php index 091f530..5d88958 100644 --- a/wp-content/themes/cosmopet/modules/forms/module-controller.php +++ b/wp-content/themes/cosmopet/modules/forms/module-controller.php @@ -555,7 +555,7 @@ class FormHandlerFactory { } global $site_env; -if ($site_env->site_revion == 'ru'){ +if ($site_env->site_region == 'ru'){ // обработка обновления профиля пользователя add_action('profile_update', 'handle_profile_update', 10, 2);