Merge pull request #196 from tractorcow/pulls/2.0/blogtree-migration

BUG Fix blogtree with non-blogpost children breaking on migration
This commit is contained in:
Christopher Pitt 2015-04-28 14:18:38 +12:00
commit 1427cbdf6b

View File

@ -3,7 +3,7 @@
/**
* @deprecated since version 2.0
*/
class BlogTree extends Blog implements MigratableObject {
class BlogTree extends Page implements MigratableObject {
private static $hide_ancestor = 'BlogTree';
@ -19,7 +19,7 @@ class BlogTree extends Blog implements MigratableObject {
public function up() {
if($this->ClassName === 'BlogTree') {
$this->ClassName = 'Blog';
$this->ClassName = 'Page';
$this->write();
}
}
@ -28,5 +28,5 @@ class BlogTree extends Blog implements MigratableObject {
/**
* @deprecated since version 2.0
*/
class BlogTree_Controller extends Blog_Controller {
class BlogTree_Controller extends Page_Controller {
}