aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2015-01-24 15:43:45 +0100
committerThomas Citharel <tcit@tcit.fr>2015-01-24 15:43:45 +0100
commit1be071f9f0fba7c93f114a886ff19199955a3f02 (patch)
treef6b2bbd59cb90d7c95acb952a6f811e90b76dfb1 /inc/poche
parent3e1daa4c9016944b444829151334ab87cd3d3dcb (diff)
downloadwallabag-1be071f9f0fba7c93f114a886ff19199955a3f02.tar.gz
wallabag-1be071f9f0fba7c93f114a886ff19199955a3f02.tar.zst
wallabag-1be071f9f0fba7c93f114a886ff19199955a3f02.zip
fix syntax errors
Diffstat (limited to 'inc/poche')
-rwxr-xr-xinc/poche/Poche.class.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index adb335c9..e89e9d30 100755
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -85,20 +85,20 @@ class Poche
85 // if internal registration 85 // if internal registration
86 $body_internal = "Hi,\r\n\r\nSomeone just created an account for you on " . Tools::getPocheUrl() . ".\r\nHave fun with it !"; 86 $body_internal = "Hi,\r\n\r\nSomeone just created an account for you on " . Tools::getPocheUrl() . ".\r\nHave fun with it !";
87 // if external (public) registration 87 // if external (public) registration
88 $body = "Hi, \r\n\r\nYou've just created an account on " . Tools::getPocheUrl() . . ".\r\nHave fun with it !"; 88 $body = "Hi, \r\n\r\nYou've just created an account on " . Tools::getPocheUrl() . ".\r\nHave fun with it !";
89 $body = $internalRegistration ? $body_internal : $body; 89 $body = $internalRegistration ? $body_internal : $body;
90 $body = wordwrap($body, 70, "\r\n"); // cut lines with more than 70 caracters (MIME standard) 90 $body = wordwrap($body, 70, "\r\n"); // cut lines with more than 70 caracters (MIME standard)
91 if (mail($email, sprintf(_('Your new wallabag account on '), Tools::getPocheUrl()), $body, 'From: {$email}')) { 91 if (mail($email, sprintf(_('Your new wallabag account on '), Tools::getPocheUrl()), $body, 'X-Mailer: PHP/' . phpversion())) {
92 Tools::logm('The user ' . $newUsername . ' has been emailed'); 92 Tools::logm('The user ' . $newUsername . ' has been emailed');
93 $this->messages->add('i', sprintf(_('The new user %1$s has been sent an email at %2$s.'), $newUsername, $email)); 93 $this->messages->add('i', sprintf(_('The new user %1$s has been sent an email at %2$s.'), $newUsername, $email));
94 94
95 } else { 95 } else {
96 Tools::logm('A problem has been encountered while sending an email'); 96 Tools::logm('A problem has been encountered while sending an email');
97 $this->messages->add('e', _('A problem has been encountered while sending an email'); 97 $this->messages->add('e', _('A problem has been encountered while sending an email'));
98 } 98 }
99 } else { 99 } else {
100 Tools::logm('The user has been created, but the server did not authorize sending emails'); 100 Tools::logm('The user has been created, but the server did not authorize sending emails');
101 $this->messages->add('i', _('The server did not authorize sending an email'); 101 $this->messages->add('i', _('The server did not authorize sending an email'));
102 } 102 }
103 Tools::logm('The new user ' . $newUsername . ' has been installed'); 103 Tools::logm('The new user ' . $newUsername . ' has been installed');
104 $this->messages->add('s', sprintf(_('The new user %s has been installed. Do you want to <a href="?logout">logout ?</a>'), $newUsername)); 104 $this->messages->add('s', sprintf(_('The new user %s has been installed. Do you want to <a href="?logout">logout ?</a>'), $newUsername));