Skip to content
Snippets Groups Projects
Commit 89d04706 authored by Benjamin Melançon's avatar Benjamin Melançon
Browse files

Make the language in unconfigured notice more natural

TODO set these automatically when Custom error is enabled if still set to default.
parent d1006cb6
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ class CustomerrorSettingsForm extends ConfigFormBase {
];
foreach ($errors as $code => $desc) {
if (\Drupal::config('system.site')->get("page.$code") != "/customerror/{$code}") {
drupal_set_message($this->t('Error reporting is not set for error @error. Please ensure that the default @error page is set to be /customerror/@error on the @link.', ['@error' => $code, '@link' => Link::createFromRoute($this->t('Site information settings page'), 'system.site_information_settings')->toString()]), 'error', FALSE);
drupal_set_message($this->t('Custom error is not configured for @error errors. Please ensure that the default @error page is set to be /customerror/@error on the @link.', ['@error' => $code, '@link' => Link::createFromRoute($this->t('Site information settings page'), 'system.site_information_settings')->toString()]), 'error', FALSE);
}
}
foreach ($errors as $code => $desc) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment