mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
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.
|
||||
*/
|
||||
|
||||
if(class_exists('SiteTree')) {
|
||||
Commenting::add('SiteTree');
|
||||
}
|
Loading…
Reference in New Issue
Block a user