| @@ -1,9 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | namespace SpringDevs\Subscription\Illuminate\Emails; |
| 4 | 4 | |
| 5 | -use SpringDevs\Subscription\Illuminate\Multilingual; | |
| 6 | 5 | use SpringDevs\Subscription\Traits\Email; |
| 7 | 6 | use WC_Email; |
| 8 | 7 | |
| 9 | 8 | /** |
| @@ -65,18 +64,11 @@ | ||
| 65 | 64 | } |
| 66 | 65 | $this->placeholders['{subscription_id}'] = $subscription_id; |
| 67 | 66 | $this->subscription_id = $subscription_id; |
| 68 | 67 | |
| 69 | - // In the customer's language, not the site's or whoever triggered it. | |
| 70 | - $switched = Multilingual::switch_email_language( $this, $subscription_id ); | |
| 71 | - | |
| 72 | 68 | $this->set_table_data(); |
| 73 | 69 | |
| 74 | 70 | $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() ); |
| 75 | - | |
| 76 | - if ( $switched ) { | |
| 77 | - Multilingual::restore_email_language( $this ); | |
| 78 | - } | |
| 79 | 71 | } |
| 80 | 72 | |
| 81 | 73 | /** |
| 82 | 74 | * Initialize form fields for settings. |