]> source.dussan.org Git - nextcloud-server.git/commitdiff
Admin setting PHP and SMTP casing 784/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Tue, 9 Aug 2016 12:12:39 +0000 (14:12 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Tue, 9 Aug 2016 12:12:39 +0000 (14:12 +0200)
settings/templates/admin.php

index 74fe585962df605e3eb16554059ced6321fed842..730e60cfad4afb069f39274f3d31daab4b7603c0 100644 (file)
@@ -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>