summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-09 14:12:39 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-08-09 14:12:39 +0200
commit81b45d0c90616f035a62cdcc742bcca2dc61ecfd (patch)
tree05681751633fc412736b9c77629bda56f0171c41 /settings
parent3a26def7cf446bbf8bb019ebc4ac30cfe4d27151 (diff)
downloadnextcloud-server-81b45d0c90616f035a62cdcc742bcca2dc61ecfd.tar.gz
nextcloud-server-81b45d0c90616f035a62cdcc742bcca2dc61ecfd.zip
Admin setting PHP and SMTP casing
Diffstat (limited to 'settings')
-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>