mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
MINOR Added BlogEntry_Controller->PageComments() as a temporary workaround to avoid deprecation warnings from new 'comments' module
This commit is contained in:
parent
eb52713954
commit
66f7263f8a
@ -264,4 +264,15 @@ class BlogEntry_Controller extends Page_Controller {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Temporary workaround for compatibility with 'comments' module
|
||||||
|
* (has been extracted from sapphire/trunk in 12/2010).
|
||||||
|
*
|
||||||
|
* @return Form
|
||||||
|
*/
|
||||||
|
function PageComments() {
|
||||||
|
if($this->hasMethod('CommentsForm')) return $this->CommentsForm();
|
||||||
|
else return parent::PageComments();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user