mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
COMMENT: in some cases, this might not be correctly triggered
This commit is contained in:
parent
c438757b28
commit
af3b912749
@ -86,7 +86,8 @@ class BlogHolder extends BlogTree implements PermissionProvider {
|
||||
parent::requireDefaultRecords();
|
||||
|
||||
$blogHolder = DataObject::get_one('BlogHolder');
|
||||
if(!($blogHolder && $blogHolder->exists())) {
|
||||
//TODO: This does not check for whether this blogholder is an orphan or not
|
||||
if(!$blogHolder) {
|
||||
$blogholder = new BlogHolder();
|
||||
$blogholder->Title = "Blog";
|
||||
$blogholder->URLSegment = "blog";
|
||||
|
Loading…
Reference in New Issue
Block a user