diff --git a/src/Core/CoreKernel.php b/src/Core/CoreKernel.php
index ceb3ac352..934e30028 100644
--- a/src/Core/CoreKernel.php
+++ b/src/Core/CoreKernel.php
@@ -285,18 +285,19 @@ class CoreKernel implements Kernel
// Build error response
$dv = new DebugView();
- $body =
- $dv->renderHeader() .
+ $body = implode([
+ $dv->renderHeader(),
$dv->renderInfo(
"Configuration Error",
Director::absoluteBaseURL()
- ) .
+ ),
$dv->renderParagraph(
'You need to replace your _ss_environment.php file with a .env file, or with environment variables.
'
. 'See the '
. 'Environment Management docs for more information.'
- ) .
- $dv->renderFooter();
+ ),
+ $dv->renderFooter()
+ ]);
// Raise error
$response = new HTTPResponse($body, 500);
diff --git a/src/ORM/DataObject.php b/src/ORM/DataObject.php
index e0ed2aeb8..4a74a35ae 100644
--- a/src/ORM/DataObject.php
+++ b/src/ORM/DataObject.php
@@ -2102,12 +2102,11 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
// If we haven't been written yet, we can't save these relations, so use a list that handles this case
if (!$id) {
if (!isset($this->unsavedRelations[$componentName])) {
- $this->unsavedRelations[$componentName] =
- new UnsavedRelationList(
- $manyManyComponent['parentClass'],
- $componentName,
- $manyManyComponent['childClass']
- );
+ $this->unsavedRelations[$componentName] = new UnsavedRelationList(
+ $manyManyComponent['parentClass'],
+ $componentName,
+ $manyManyComponent['childClass']
+ );
}
return $this->unsavedRelations[$componentName];
}
diff --git a/src/Security/PermissionCheckboxSetField.php b/src/Security/PermissionCheckboxSetField.php
index ef039bd4b..3f91e33e7 100644
--- a/src/Security/PermissionCheckboxSetField.php
+++ b/src/Security/PermissionCheckboxSetField.php
@@ -268,15 +268,15 @@ class PermissionCheckboxSetField extends FormField
}
}
if ($this->readonly) {
+ $message = _t(
+ 'SilverStripe\\Security\\Permission.UserPermissionsIntro',
+ 'Assigning groups to this user will adjust the permissions they have.'
+ . ' See the groups section for details of permissions on individual groups.'
+ );
+
return
"