BUGFIX: Segfault on BlogTree#Sidebar calling getComponent. Fix by directly getting sidebar for now.

This commit is contained in:
Hamish Friedlander 2009-05-15 03:46:49 +00:00
parent 23591eec35
commit 05cf841808

View File

@ -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 -------------- */