Skip to content

Commit c591776

Browse files
authored
Merge pull request #804 from nextcloud/10-admin_php_smtp_casing
[stable10] Admin setting PHP and SMTP casing
2 parents 94d9d52 + 232b1f4 commit c591776

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

settings/templates/admin.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@
3939
];
4040

4141
$mail_smtpmode = [
42-
'php',
43-
'smtp',
42+
['php', 'PHP'],
43+
['smtp', 'SMTP'],
4444
];
4545
if ($_['sendmail_is_available']) {
46-
$mail_smtpmode[] = 'sendmail';
46+
$mail_smtpmode[] = ['sendmail', 'Sendmail'];
4747
}
4848
if ($_['mail_smtpmode'] == 'qmail') {
49-
$mail_smtpmode[] = 'qmail';
49+
$mail_smtpmode[] = ['qmail', 'qmail'];
5050
}
5151
?>
5252

@@ -414,10 +414,10 @@
414414
<select name='mail_smtpmode' id='mail_smtpmode'>
415415
<?php foreach ($mail_smtpmode as $smtpmode):
416416
$selected = '';
417-
if ($smtpmode == $_['mail_smtpmode']):
417+
if ($smtpmode[0] == $_['mail_smtpmode']):
418418
$selected = 'selected="selected"';
419419
endif; ?>
420-
<option value='<?php p($smtpmode)?>' <?php p($selected) ?>><?php p($smtpmode) ?></option>
420+
<option value='<?php p($smtpmode[0])?>' <?php p($selected) ?>><?php p($smtpmode[1]) ?></option>
421421
<?php endforeach;?>
422422
</select>
423423

0 commit comments

Comments
 (0)