]> source.dussan.org Git - nextcloud-server.git/commitdiff
Resolve conflict
authorLukas Reschke <lukas@statuscode.ch>
Thu, 11 Aug 2016 17:39:32 +0000 (19:39 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Tue, 16 Aug 2016 19:09:31 +0000 (21:09 +0200)
settings/templates/admin/server.php

index 1bf068de3929328196b0574b1af6b3b05145282b..43df787d519e10b8330a354b38b8f0760e8e3d89 100644 (file)
@@ -38,14 +38,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'];
 }
 ?>
 
@@ -244,10 +244,10 @@ if ($_['mail_smtpmode'] == 'qmail') {
                        <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>