X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FSystemConfigSubscriber.php;h=0ab0d15fc6105dd9725adfadf09edf2d36daf14f;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=519155b8497c9e92a29e2aa3d85b6f867abc540a;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/modules/system/src/SystemConfigSubscriber.php b/web/core/modules/system/src/SystemConfigSubscriber.php index 519155b84..0ab0d15fc 100644 --- a/web/core/modules/system/src/SystemConfigSubscriber.php +++ b/web/core/modules/system/src/SystemConfigSubscriber.php @@ -72,6 +72,9 @@ class SystemConfigSubscriber implements EventSubscriberInterface { * The config import event. */ public function onConfigImporterValidateSiteUUID(ConfigImporterEvent $event) { + if (!$event->getConfigImporter()->getStorageComparer()->getSourceStorage()->exists('system.site')) { + $event->getConfigImporter()->logError($this->t('This import does not contain system.site configuration, so has been rejected.')); + } if (!$event->getConfigImporter()->getStorageComparer()->validateSiteUuid()) { $event->getConfigImporter()->logError($this->t('Site UUID in source storage does not match the target storage.')); }