- fixed translations for email notifications

This commit is contained in:
nikitozzzzzzz
2018-10-11 12:47:32 +03:00
parent 0ffdaa60f6
commit 73ba2681fe
2 changed files with 2 additions and 4 deletions
@@ -286,8 +286,8 @@ if ( ! class_exists( 'um\core\External_Integrations' ) ) {
$language_codes = $this->get_languages_codes();
$lang = '';
if ( $language_codes['default'] != $language_codes['current'] &&
UM()->config()->email_notifications[ $template_name ]['recipient'] != 'admin' ) {
if ( $language_codes['default'] != $language_codes['current'] /*&&
UM()->config()->email_notifications[ $template_name ]['recipient'] != 'admin'*/ ) {
$lang = $language_codes['current'] . '/';
}
-2
View File
@@ -1084,8 +1084,6 @@ if ( ! class_exists( 'um\core\Uploader' ) ) {
$crop = explode( ',', $coord );
$crop = array_map( 'intval', $crop );
error_log(__METHOD__ . " key=$key");
do_action("um_upload_image_process__{$key}", $image_path, $src, $key, $user_id, $coord, $crop );
if ( ! in_array( $key, array('profile_photo','cover_photo') ) ) {