mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
fixing a PHP7 only statement to be 5.6 compatible
This commit is contained in:
parent
e03e7d9ce9
commit
e86cc55ba6
@ -46,7 +46,8 @@ class GroupSubsites extends DataExtension implements PermissionProvider
|
||||
return;
|
||||
}
|
||||
// Migration for Group.SubsiteID data from when Groups only had a single subsite
|
||||
$schema = $this->owner::getSchema();
|
||||
$ownerClass = get_class($this->owner);
|
||||
$schema = $ownerClass::getSchema();
|
||||
$groupFields = DB::field_list($schema->tableName(Group::class));
|
||||
|
||||
// Detection of SubsiteID field is the trigger for old-style-subsiteID migration
|
||||
|
Loading…
x
Reference in New Issue
Block a user