no need to press save twice
这个提交包含在:
父节点
90783ce553
当前提交
dbcc5ed91f
共有 2 个文件被更改,包括 6 次插入 和 2 次删除
|
|
@ -272,7 +272,11 @@ class Options extends CI_Controller {
|
||||||
$smtpEncryptionupdate = $this->optionslib->update('smtpEncryption', $this->input->post('smtpEncryption'), 'yes');
|
$smtpEncryptionupdate = $this->optionslib->update('smtpEncryption', $this->input->post('smtpEncryption'), 'yes');
|
||||||
|
|
||||||
// Update email sender name within the options system
|
// Update email sender name within the options system
|
||||||
$emailSenderNameupdate = $this->optionslib->update('emailSenderName', $this->input->post('emailSenderName'), 'yes');
|
$emailSenderName_value = $this->input->post('emailSenderName');
|
||||||
|
if (empty($emailSenderName_value)) {
|
||||||
|
$emailSenderName_value = 'Cloudlog';
|
||||||
|
}
|
||||||
|
$emailSenderNameupdate = $this->optionslib->update('emailSenderName', $emailSenderName_value, 'yes');
|
||||||
|
|
||||||
// Update email address choice within the options system
|
// Update email address choice within the options system
|
||||||
$emailAddressupdate = $this->optionslib->update('emailAddress', $this->input->post('emailAddress'), 'yes');
|
$emailAddressupdate = $this->optionslib->update('emailAddress', $this->input->post('emailAddress'), 'yes');
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label for="emailSenderName" class="col-sm-2 col-form-label"><?php echo lang('options_email_sender_name'); ?></label>
|
<label for="emailSenderName" class="col-sm-2 col-form-label"><?php echo lang('options_email_sender_name'); ?></label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<input type="text" name="emailSenderName" class="form-control" id="emailSenderName" value="<?php echo ($this->optionslib->get_option('emailSenderName') == "" ? 'Cloudlog' : $this->optionslib->get_option('emailSenderName'));?>">
|
<input type="text" name="emailSenderName" class="form-control" id="emailSenderName" value="<?php if($this->optionslib->get_option('emailSenderName') != "") { echo $this->optionslib->get_option('emailSenderName'); } ?>">
|
||||||
<small class="form-text text-muted"><?php echo lang('options_email_sender_name_hint'); ?></small>
|
<small class="form-text text-muted"><?php echo lang('options_email_sender_name_hint'); ?></small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用