Skip to content

Commit

Permalink
Remove trans while saving
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadow243 authored and josaphatim committed May 7, 2024
1 parent a13a6ca commit 2cf7a0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/contacts/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function process() {

if (!empty($newContacts)) {
$newContacts = array_map(function ($email) {
return ['source' => 'local', 'email_address' => $email, 'display_name' => $email, 'group' => $this->trans('Collected Recipients')];
return ['source' => 'local', 'email_address' => $email, 'display_name' => $email, 'group' => 'Collected Recipients'];
}, $newContacts);
$contacts->add_contact($newContacts[0]);
$this->session->record_unsaved('Contact Added');
Expand All @@ -64,7 +64,7 @@ public function process() {
$contact_list = $contacts->getAll();
$existingEmails = array_column($contact_list, 'email_address');
if (!in_array($email, $existingEmails)) {
$contacts->add_contact(['source' => 'local', 'email_address' => $email, 'display_name' => $name, 'group' => $this->trans('Trusted Senders')]);
$contacts->add_contact(['source' => 'local', 'email_address' => $email, 'display_name' => $name, 'group' => 'Trusted Senders']);
$this->session->record_unsaved('Contact Added');
Hm_Msgs::add('Contact Added');
}
Expand Down

0 comments on commit 2cf7a0a

Please sign in to comment.