aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-03 16:17:20 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-03 16:17:20 +0000
commit00806d7686b6dce4fd9386dfea7f3cc440901524 (patch)
tree204b472dc6f59d7eba3a946934aad990836a361b /mod
parent5366cd6a4ca12203147407be01a80817fa37ea3a (diff)
downloadelgg-00806d7686b6dce4fd9386dfea7f3cc440901524.tar.gz
elgg-00806d7686b6dce4fd9386dfea7f3cc440901524.tar.bz2
Refs #311: Modified message slightly
git-svn-id: https://code.elgg.org/elgg/trunk@2178 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/uservalidationbyemail/languages/en.php2
-rw-r--r--mod/uservalidationbyemail/start.php7
2 files changed, 7 insertions, 2 deletions
diff --git a/mod/uservalidationbyemail/languages/en.php b/mod/uservalidationbyemail/languages/en.php
index b2fe69218..b2ebf2596 100644
--- a/mod/uservalidationbyemail/languages/en.php
+++ b/mod/uservalidationbyemail/languages/en.php
@@ -23,6 +23,8 @@ Please confirm your email address by clicking on the link below:
Congratulations, you have successfully validated your email address.",
+ 'uservalidationbyemail:registerok' => "To activate your account, please confirm your email address by clicking on the link we sent you."
+
);
add_translation("en",$english);
diff --git a/mod/uservalidationbyemail/start.php b/mod/uservalidationbyemail/start.php
index 2479d3b98..674f53872 100644
--- a/mod/uservalidationbyemail/start.php
+++ b/mod/uservalidationbyemail/start.php
@@ -67,8 +67,11 @@
$link = $CONFIG->site->url . "action/email/confirm?u=$user_guid&c=" . uservalidationbyemail_generate_code($user_guid, $user->email);
// Send validation email
- return notify_user($user->guid, $CONFIG->site->guid, sprintf(elgg_echo('email:validate:subject'), $user->username), sprintf(elgg_echo('email:validate:body'), $user->name, $link), NULL, 'email');
-
+ $result = notify_user($user->guid, $CONFIG->site->guid, sprintf(elgg_echo('email:validate:subject'), $user->username), sprintf(elgg_echo('email:validate:body'), $user->name, $link), NULL, 'email');
+ if ($result)
+ system_message(elgg_echo('uservalidationbyemail:registerok'));
+
+ return $result;
}
return false;