Update BlogHolder.php

fixed whitespace back - amended DB alteration message to match split
This commit is contained in:
Phill Price 2014-10-23 21:48:16 +01:00
parent d1ccbc583a
commit ba28711d4b

View File

@ -124,7 +124,7 @@ class BlogHolder extends BlogTree implements PermissionProvider {
// Skip creation of default records
if(!self::config()->create_default_pages) return;
if(!BlogHolder::get()->exists()) {
if(!$BlogHolder::get()->exists()) {
$blogholder = new BlogHolder();
$blogholder->Title = "Blog";
$blogholder->URLSegment = "blog";
@ -162,8 +162,9 @@ class BlogHolder extends BlogTree implements PermissionProvider {
}
}
}
DB::alteration_message("Blog holder created","created");
}
if(!BlogEntry::get()->exists()) {
if(!$BlogEntry::get()->exists()) {
$blog = new BlogEntry();
$blog->Title = _t('BlogHolder.SUCTITLE', "SilverStripe blog module successfully installed");
$blog->URLSegment = 'sample-blog-entry';
@ -174,7 +175,7 @@ class BlogHolder extends BlogTree implements PermissionProvider {
$blog->write();
$blog->publish("Stage", "Live");
DB::alteration_message("Blog page created","created");
DB::alteration_message("Blog entry created","created");
}
}