aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Poche.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/poche/Poche.class.php')
-rwxr-xr-xinc/poche/Poche.class.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index cd7578e3..a91a3f8f 100755
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -93,7 +93,9 @@ class Poche
93 _('This is an automatically generated message, no one will answer if you respond to it.'); 93 _('This is an automatically generated message, no one will answer if you respond to it.');
94 94
95 // if external (public) registration 95 // if external (public) registration
96 $body = "Hi, " . $newUsername . "\r\n\r\nYou've just created a wallabag account on " . Tools::getPocheUrl() . ".\r\nHave fun with it !"; 96 $body = sprintf(_('Hi, %1$s'), $newUsername) . "\r\n\r\n" .
97 sprintf(_('You\'ve just created a wallabag account on %1$s.'), Tools::getPocheUrl()) .
98 "\r\n\r\n" . _("Have fun with it !");
97 $body = $internalRegistration ? $body_internal : $body; 99 $body = $internalRegistration ? $body_internal : $body;
98 100
99 $body = wordwrap($body, 70, "\r\n"); // cut lines with more than 70 caracters (MIME standard) 101 $body = wordwrap($body, 70, "\r\n"); // cut lines with more than 70 caracters (MIME standard)
@@ -117,7 +119,9 @@ class Poche
117 $this->messages->add('i', _('The user was created, but no email was sent because email was not filled in')); 119 $this->messages->add('i', _('The user was created, but no email was sent because email was not filled in'));
118 } 120 }
119 Tools::logm('The new user ' . $newUsername . ' has been installed'); 121 Tools::logm('The new user ' . $newUsername . ' has been installed');
120 $this->messages->add('s', sprintf(_('The new user %s has been installed. Do you want to <a href="?logout">logout ?</a>'), $newUsername)); 122 if (\Session::isLogged()) {
123 $this->messages->add('s', sprintf(_('The new user %s has been installed. Do you want to <a href="?logout">logout ?</a>'), $newUsername));
124 }
121 Tools::redirect(); 125 Tools::redirect();
122 } 126 }
123 else { 127 else {