BUG Fix blogtree with non-blogpost children breaking on migration

This commit is contained in:
Damian Mooyman 2015-04-23 12:47:03 +12:00
parent 7f5bf0cda9
commit 0c6f5122ed
1 changed files with 3 additions and 3 deletions

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 {
}