diff --git a/code/compat/pages/BlogEntry.php b/code/compat/pages/BlogEntry.php index 1d78954..12838f1 100644 --- a/code/compat/pages/BlogEntry.php +++ b/code/compat/pages/BlogEntry.php @@ -52,6 +52,9 @@ class BlogEntry extends BlogPost implements MigratableObject { if($this->ClassName === 'BlogEntry') { $this->ClassName = 'BlogPost'; $this->write(); + if($this->isPublished()){ + $this->doPublish(); + } } } diff --git a/code/compat/tasks/BlogMigrationTask.php b/code/compat/tasks/BlogMigrationTask.php index 4e786e5..6e78130 100644 --- a/code/compat/tasks/BlogMigrationTask.php +++ b/code/compat/tasks/BlogMigrationTask.php @@ -24,6 +24,8 @@ class BlogMigrationTask extends MigrationTask { } public function up() { + SS_ClassLoader::instance()->getManifest()->regenerate(false); + $classes = ClassInfo::implementorsOf('MigratableObject'); $this->message('Migrating legacy blog records');