diff --git a/code/BlogTree.php b/code/BlogTree.php index 0137385..d829397 100644 --- a/code/BlogTree.php +++ b/code/BlogTree.php @@ -77,7 +77,8 @@ class BlogTree extends Page { function SideBar() { if ($this->InheritSideBar && $this->getParent()) return $this->getParent()->SideBar() ; - return $this->getComponent('SideBar'); + return DataObject::get_by_id('WidgetArea', $this->SideBarID); + // @todo: This segfaults - investigate why then fix: return $this->getComponent('SideBar'); } /* ----------- CMS CONTROL -------------- */