From 83a6de252f1ed1a4982598eab53c9ffca54d71d8 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Sat, 23 Feb 2013 09:48:59 +1300 Subject: [PATCH] Only attach comments to pages if cms exists --- _config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_config.php b/_config.php index eb5c24c..3b05107 100644 --- a/_config.php +++ b/_config.php @@ -26,4 +26,6 @@ * consult the Commenting class. */ -Commenting::add('SiteTree'); \ No newline at end of file +if(class_exists('SiteTree')) { + Commenting::add('SiteTree'); +} \ No newline at end of file