@@ -27,23 +27,23 @@ |
||
27 | 27 | |
28 | 28 | class SettingsManager { |
29 | 29 | |
30 | - /** @var IConfig */ |
|
31 | - private $config; |
|
32 | - |
|
33 | - private $defaultSetting = 'yes'; |
|
34 | - |
|
35 | - public function __construct(IConfig $config) { |
|
36 | - $this->config = $config; |
|
37 | - } |
|
38 | - |
|
39 | - /** |
|
40 | - * should the password for a mail share be send to the recipient |
|
41 | - * |
|
42 | - * @return bool |
|
43 | - */ |
|
44 | - public function sendPasswordByMail() { |
|
45 | - $sendPasswordByMail = $this->config->getAppValue('sharebymail', 'sendpasswordmail', $this->defaultSetting); |
|
46 | - return $sendPasswordByMail === 'yes'; |
|
47 | - } |
|
30 | + /** @var IConfig */ |
|
31 | + private $config; |
|
32 | + |
|
33 | + private $defaultSetting = 'yes'; |
|
34 | + |
|
35 | + public function __construct(IConfig $config) { |
|
36 | + $this->config = $config; |
|
37 | + } |
|
38 | + |
|
39 | + /** |
|
40 | + * should the password for a mail share be send to the recipient |
|
41 | + * |
|
42 | + * @return bool |
|
43 | + */ |
|
44 | + public function sendPasswordByMail() { |
|
45 | + $sendPasswordByMail = $this->config->getAppValue('sharebymail', 'sendpasswordmail', $this->defaultSetting); |
|
46 | + return $sendPasswordByMail === 'yes'; |
|
47 | + } |
|
48 | 48 | |
49 | 49 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | <em><?php p($l->t('Send a personalized link to a file or folder by mail.')); ?></em> |
11 | 11 | |
12 | 12 | <p> |
13 | - <input id="sendPasswordMail" type="checkbox" class="checkbox" <?php if($_['sendPasswordMail']) p('checked'); ?> /> |
|
13 | + <input id="sendPasswordMail" type="checkbox" class="checkbox" <?php if ($_['sendPasswordMail']) p('checked'); ?> /> |
|
14 | 14 | <label for="sendPasswordMail"><?php p($l->t('Send password by mail')); ?></label> |
15 | 15 | </p> |
16 | 16 |
@@ -10,7 +10,10 @@ |
||
10 | 10 | <em><?php p($l->t('Send a personalized link to a file or folder by mail.')); ?></em> |
11 | 11 | |
12 | 12 | <p> |
13 | - <input id="sendPasswordMail" type="checkbox" class="checkbox" <?php if($_['sendPasswordMail']) p('checked'); ?> /> |
|
13 | + <input id="sendPasswordMail" type="checkbox" class="checkbox" <?php if($_['sendPasswordMail']) { |
|
14 | + p('checked'); |
|
15 | +} |
|
16 | +?> /> |
|
14 | 17 | <label for="sendPasswordMail"><?php p($l->t('Send password by mail')); ?></label> |
15 | 18 | </p> |
16 | 19 |