X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FForm%2FSiteInformationForm.php;h=4e4e1571fd54946ab0e81394055f30d8e6b14704;hb=4f1b9b4ab48a8498afac9e2213a02a23ccf4a06c;hp=7173ebe9427147f567ac432988fc1fe4c2e09159;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/system/src/Form/SiteInformationForm.php b/web/core/modules/system/src/Form/SiteInformationForm.php index 7173ebe94..4e4e1571f 100644 --- a/web/core/modules/system/src/Form/SiteInformationForm.php +++ b/web/core/modules/system/src/Form/SiteInformationForm.php @@ -12,6 +12,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface; /** * Configure site information settings for this site. + * + * @internal */ class SiteInformationForm extends ConfigFormBase { @@ -172,7 +174,7 @@ class SiteInformationForm extends ConfigFormBase { } if (!$this->pathValidator->isValid($form_state->getValue('site_frontpage'))) { - $form_state->setErrorByName('site_frontpage', $this->t("The path '%path' is either invalid or you do not have access to it.", ['%path' => $form_state->getValue('site_frontpage')])); + $form_state->setErrorByName('site_frontpage', $this->t("Either the path '%path' is invalid or you do not have access to it.", ['%path' => $form_state->getValue('site_frontpage')])); } // Get the normal paths of both error pages. if (!$form_state->isValueEmpty('site_403')) { @@ -189,11 +191,11 @@ class SiteInformationForm extends ConfigFormBase { } // Validate 403 error path. if (!$form_state->isValueEmpty('site_403') && !$this->pathValidator->isValid($form_state->getValue('site_403'))) { - $form_state->setErrorByName('site_403', $this->t("The path '%path' is either invalid or you do not have access to it.", ['%path' => $form_state->getValue('site_403')])); + $form_state->setErrorByName('site_403', $this->t("Either the path '%path' is invalid or you do not have access to it.", ['%path' => $form_state->getValue('site_403')])); } // Validate 404 error path. if (!$form_state->isValueEmpty('site_404') && !$this->pathValidator->isValid($form_state->getValue('site_404'))) { - $form_state->setErrorByName('site_404', $this->t("The path '%path' is either invalid or you do not have access to it.", ['%path' => $form_state->getValue('site_404')])); + $form_state->setErrorByName('site_404', $this->t("Either the path '%path' is invalid or you do not have access to it.", ['%path' => $form_state->getValue('site_404')])); } parent::validateForm($form, $form_state);