Only attach comments to pages if cms exists

This commit is contained in:
Will Rossiter 2013-02-23 09:48:59 +13:00
parent 857b78314b
commit 83a6de252f

View File

@ -26,4 +26,6 @@
* consult the Commenting class. * consult the Commenting class.
*/ */
Commenting::add('SiteTree'); if(class_exists('SiteTree')) {
Commenting::add('SiteTree');
}