diff --git a/src/Form/RedirectFix404Form.php b/src/Form/RedirectFix404Form.php index 8350380..50b3c4e 100644 --- a/src/Form/RedirectFix404Form.php +++ b/src/Form/RedirectFix404Form.php @@ -124,7 +124,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { '#theme' => 'table', '#header' => $header, '#rows' => $rows, - '#empty' =>$this->t('No 404 pages without redirects found.'), + '#empty' => $this->config('redirect.settings')->get('log_404') ? $this->t('No 404 pages without redirects found.') : $this->t('404 requests are currently not logged, enable it in the Settings.'), ); $form['redirect_404_pager'] = array('#type' => 'pager'); return $form; diff --git a/src/Form/RedirectSettingsForm.php b/src/Form/RedirectSettingsForm.php index a8e3dc9..549709e 100644 --- a/src/Form/RedirectSettingsForm.php +++ b/src/Form/RedirectSettingsForm.php @@ -55,11 +55,11 @@ public function buildForm(array $form, FormStateInterface $form_state) { '#options' => redirect_status_code_options(), '#default_value' => $config->get('default_status_code'), ); - $form['redirect_error_log'] = array( + $form['redirect_404_log'] = array( '#type' => 'checkbox', '#title' => t('Log 404 errors.'), - '#default_value' => $config->get('error_log'), - '#description' => t('In case you directly import 404 errors from the webserver, you need to disable logging to avoid duplicates.'), + '#default_value' => $config->get('log_404'), + '#description' => t('Logging 404 error allows to easily create redirects for often requested but missing pages.'), ); $form['globals'] = array( '#type' => 'fieldset',