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) {
|
if (!$subsite) {
|
||||||
$subsiteID = Subsite::getSubsiteIDForDomain();
|
$subsiteID = Subsite::getSubsiteIDForDomain();
|
||||||
if ($subsiteID != 0) {
|
if ($subsiteID != 0) {
|
||||||
$subsite = DataObject::get_by_id("Subsite", $subsiteID);
|
$subsite = DataObject::get_by_id(Subsite::class, $subsiteID);
|
||||||
} else {
|
} else {
|
||||||
$subsite = null;
|
$subsite = null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user