fix for #114 - incorrect variable reference

the settings page was failing to load because it was referencing a
parameter in the mail config data array that did not exist.

that's been fixed so the page loads properly
This commit is contained in:
ro 2024-06-04 14:23:41 -06:00
parent 728a2e5a69
commit c7aef33845
No known key found for this signature in database
GPG key ID: 29B551CDBD4D3B50

View file

@ -6,7 +6,7 @@
</div>
<div id="mail-mg" data-enabled='false'>
<input type='text' class="input-dark" name='mg-domain' id='mg-domain' placeholder='domain' value="{{$mailConfig['mailgun']['domain']}}" />
<input type='text' class="input-dark" name='mg-key' id='mg-key' placeholder='api key' value="{{$mailConfig['mailgun']['key']}}"/>
<input type='text' class="input-dark" name='mg-key' id='mg-key' placeholder='api key' value="{{$mailConfig['mailgun']['api-key']}}"/>
</div>
@elseif($mailOption == 'option-mg')
<div id="mail-smtp" data-enabled='false'>
@ -16,7 +16,7 @@
</div>
<div id="mail-mg" data-enabled='true'>
<input type='text' class="input-dark" name='mg-domain' id='mg-domain' placeholder='domain' value="{{$mailConfig['mailgun']['domain']}}" />
<input type='text' class="input-dark" name='mg-key' id='mg-key' placeholder='api key' value="{{$mailConfig['mailgun']['key']}}"/>
<input type='text' class="input-dark" name='mg-key' id='mg-key' placeholder='api key' value="{{$mailConfig['mailgun']['api-key']}}"/>
</div>
@else
<div id="mail-smtp" data-enabled='false'>
@ -26,6 +26,6 @@
</div>
<div id="mail-mg" data-enabled='false'>
<input type='text' class="input-dark" name='mg-domain' id='mg-domain' placeholder='domain' value="{{$mailConfig['mailgun']['domain']}}" />
<input type='text' class="input-dark" name='mg-key' id='mg-key' placeholder='api key' value="{{$mailConfig['mailgun']['key']}}"/>
<input type='text' class="input-dark" name='mg-key' id='mg-key' placeholder='api key' value="{{$mailConfig['mailgun']['api-key']}}"/>
</div>
@endif