mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
MINOR Removed unused getBlogHolder() method from BlogManagementWidget.php
This commit is contained in:
parent
1b7de7e092
commit
b088e1ff8c
@ -60,17 +60,5 @@ class BlogManagementWidget extends Widget implements PermissionProvider {
|
||||
if ($container) return $container->Link('post');
|
||||
}
|
||||
|
||||
function getBlogHolder() {
|
||||
$page = Director::currentPage();
|
||||
|
||||
if($page->is_a("BlogHolder")) {
|
||||
return $page;
|
||||
} else if($page->is_a("BlogEntry") && $page->getParent()->is_a("BlogHolder")) {
|
||||
return $page->getParent();
|
||||
} else {
|
||||
return DataObject::get_one("BlogHolder");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user