fixing a namespaced ORM call

This commit is contained in:
Werner M. Krauß 2017-06-01 14:42:56 +02:00
parent 212e4797b0
commit e03e7d9ce9

View File

@ -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;
} }