diff --git a/code/ContentController.php b/code/ContentController.php index b00d25eb..940e41cc 100755 --- a/code/ContentController.php +++ b/code/ContentController.php @@ -232,7 +232,7 @@ class ContentController extends Controller { $hasOnes = $this->dataRecord->has_one(); if(!$hasOnes) return false; foreach($hasOnes as $hasOneName => $hasOneClass) { - if($hasOneClass == 'WidgetArea' || ClassInfo::is_subclass_of($hasOneClass, 'WidgetArea')) { + if($hasOneClass == 'WidgetArea' || is_subclass_of($hasOneClass, 'WidgetArea')) { $widgetAreaRelations[] = $hasOneName; } }