Fix config key names (#4464)
This commit is contained in:
parent
7266c66ebf
commit
e49ba65709
7 changed files with 47 additions and 17 deletions
|
@ -39,7 +39,7 @@ class MailController extends Controller
|
|||
public function index(): View
|
||||
{
|
||||
return $this->view->make('admin.settings.mail', [
|
||||
'disabled' => $this->config->get('mail.driver') !== 'smtp',
|
||||
'disabled' => $this->config->get('mail.default') !== 'smtp',
|
||||
]);
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@ class MailController extends Controller
|
|||
*/
|
||||
public function update(MailSettingsFormRequest $request): Response
|
||||
{
|
||||
if ($this->config->get('mail.driver') !== 'smtp') {
|
||||
if ($this->config->get('mail.default') !== 'smtp') {
|
||||
throw new DisplayException('This feature is only available if SMTP is the selected email driver for the Panel.');
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue