summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-08-09 23:45:31 +0200
committerGitHub <noreply@github.com>2016-08-09 23:45:31 +0200
commit3d54f1151f2ea6efe0030db8d3659395867c2517 (patch)
tree8269a7fbf7c66ab80cfd532a9a9233b0c9d78ce6
parent4569e4cf19691f109c037ee39e68590b48489e1e (diff)
parent81b45d0c90616f035a62cdcc742bcca2dc61ecfd (diff)
downloadnextcloud-server-3d54f1151f2ea6efe0030db8d3659395867c2517.tar.gz
nextcloud-server-3d54f1151f2ea6efe0030db8d3659395867c2517.zip
Merge pull request #784 from nextcloud/admin_php_smtp_casing
Admin setting PHP and SMTP casing
-rw-r--r--settings/templates/admin.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/settings/templates/admin.php b/settings/templates/admin.php
index 74fe585962d..730e60cfad4 100644
--- a/settings/templates/admin.php
+++ b/settings/templates/admin.php
@@ -39,14 +39,14 @@ $mail_smtpsecure = [
];
$mail_smtpmode = [
- 'php',
- 'smtp',
+ ['php', 'PHP'],
+ ['smtp', 'SMTP'],
];
if ($_['sendmail_is_available']) {
- $mail_smtpmode[] = 'sendmail';
+ $mail_smtpmode[] = ['sendmail', 'Sendmail'];
}
if ($_['mail_smtpmode'] == 'qmail') {
- $mail_smtpmode[] = 'qmail';
+ $mail_smtpmode[] = ['qmail', 'qmail'];
}
?>
@@ -414,10 +414,10 @@ if ($_['cronErrors']) {
<select name='mail_smtpmode' id='mail_smtpmode'>
<?php foreach ($mail_smtpmode as $smtpmode):
$selected = '';
- if ($smtpmode == $_['mail_smtpmode']):
+ if ($smtpmode[0] == $_['mail_smtpmode']):
$selected = 'selected="selected"';
endif; ?>
- <option value='<?php p($smtpmode)?>' <?php p($selected) ?>><?php p($smtpmode) ?></option>
+ <option value='<?php p($smtpmode[0])?>' <?php p($selected) ?>><?php p($smtpmode[1]) ?></option>
<?php endforeach;?>
</select>