mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
fixing a namespaced ORM call
This commit is contained in:
parent
212e4797b0
commit
e03e7d9ce9
@ -31,7 +31,7 @@ class ErrorPageSubsite extends DataExtension
|
||||
if (!$subsite) {
|
||||
$subsiteID = Subsite::getSubsiteIDForDomain();
|
||||
if ($subsiteID != 0) {
|
||||
$subsite = DataObject::get_by_id("Subsite", $subsiteID);
|
||||
$subsite = DataObject::get_by_id(Subsite::class, $subsiteID);
|
||||
} else {
|
||||
$subsite = null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user