From 28049e4430c340de671ef9fc3579e72343987bed Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Sun, 6 Mar 2016 14:15:10 +0800 Subject: [PATCH] Fix email template path --- core/um-mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-mail.php b/core/um-mail.php index a46ac1ea..d2b21302 100644 --- a/core/um-mail.php +++ b/core/um-mail.php @@ -40,7 +40,7 @@ class UM_Mail { $lang = get_locale(); $arr_english_lang = array('en','en_US','en_NZ','en_ZA','en_AU','en_GB'); - if( in_array( $lang, $arr_english_lang ) ){ + if( in_array( $lang, $arr_english_lang ) || strpos( $lang , 'en_' ) > -1 ){ $lang = ''; } else { $lang .= '/';