Only attach comments to pages if cms exists
This commit is contained in:
parent
857b78314b
commit
83a6de252f
|
@ -26,4 +26,6 @@
|
|||
* consult the Commenting class.
|
||||
*/
|
||||
|
||||
Commenting::add('SiteTree');
|
||||
if(class_exists('SiteTree')) {
|
||||
Commenting::add('SiteTree');
|
||||
}
|
Loading…
Reference in New Issue