mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
BUGFIX: Segfault on BlogTree#Sidebar calling getComponent. Fix by directly getting sidebar for now.
This commit is contained in:
parent
23591eec35
commit
05cf841808
@ -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 -------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user