Ensure that comment module does not overwrite users config with the standard config

This commit is contained in:
Björn Radon 2013-10-25 21:21:32 +02:00
parent 8f57e21db8
commit 24790d77dd

View File

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