From 082b1f2b2345f16ce30300c0b3488b7d0ab346df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be>
Date: Thu, 27 Jun 2019 09:51:43 +0200
Subject: [PATCH] :ambulance: fix(recovery) Fix bad error message when mail
 sending fails

issue #5997
---
 include/class_passwordRecovery.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/class_passwordRecovery.inc b/include/class_passwordRecovery.inc
index eed3f85ba..21eec1644 100644
--- a/include/class_passwordRecovery.inc
+++ b/include/class_passwordRecovery.inc
@@ -349,7 +349,7 @@ class passwordRecovery extends standAlonePage
     if (mail_utf8($this->email_address, FALSE, $this->from_mail, $this->mail_subject, $body)) {
       $this->step = 3;
     } else {
-      $this->message[] = msgPool::invalid(_("Contact your administrator, there was a problem with mail server"));
+      $this->message[] = _('Contact your administrator, there was a problem with mail server');
     }
     $smarty = get_smarty();
 
@@ -426,7 +426,7 @@ class passwordRecovery extends standAlonePage
       $this->step = 5;
       $smarty->assign('changed', TRUE);
     } else {
-      $this->message[] = msgPool::invalid(_("There was a problem with mail server, confirmation email not sent"));
+      $this->message[] = _('There was a problem with mail server, confirmation email not sent');
     }
   }
 
-- 
GitLab