From 154597c09c2943be688e915e104d0a8af2e3e0f7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Fleury Date: Wed, 30 Nov 2011 17:44:03 +0100 Subject: [PATCH] Fix issue 763. --- src/IDF/Form/Register.php | 2 +- src/IDF/Form/RegisterConfirmation.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IDF/Form/Register.php b/src/IDF/Form/Register.php index dba6f30..985a8ac 100644 --- a/src/IDF/Form/Register.php +++ b/src/IDF/Form/Register.php @@ -94,7 +94,7 @@ class IDF_Form_Register extends Pluf_Form { $this->cleaned_data['email'] = mb_strtolower(trim($this->cleaned_data['email'])); if (Pluf::factory('IDF_EmailAddress')->get_user_for_email_address($this->cleaned_data['email']) != null) { - throw new Pluf_Form_Invalid(sprintf(__('The email "%s" is already used. If you need to, click on the help link to recover your password.'), $this->cleaned_data['email'])); + throw new Pluf_Form_Invalid(sprintf(__('The email "%1$s" is already used. If you need to, you can recover your password.'), $this->cleaned_data['email'], Pluf_HTTP_URL_urlForView('IDF_Views::passwordRecoveryAsk'))); } return $this->cleaned_data['email']; } diff --git a/src/IDF/Form/RegisterConfirmation.php b/src/IDF/Form/RegisterConfirmation.php index b652111..bfdf77e 100644 --- a/src/IDF/Form/RegisterConfirmation.php +++ b/src/IDF/Form/RegisterConfirmation.php @@ -107,7 +107,7 @@ class IDF_Form_RegisterConfirmation extends Pluf_Form throw new Pluf_Form_Invalid($error); } if ($users[0]->active) { - throw new Pluf_Form_Invalid(__('This account has already been confirmed. Maybe should you try to recover your password using the help link.')); + throw new Pluf_Form_Invalid(sprintf(__('This account has already been confirmed. Maybe should you try to recover your password.'), Pluf_HTTP_URL_urlForView('IDF_Views::passwordRecoveryAsk'))); } $this->_user_id = $email_id[1]; return $this->cleaned_data['key'];