Permalink
Browse files

Only attach comments to pages if cms exists

  • Loading branch information...
1 parent 857b783 commit 83a6de252f1ed1a4982598eab53c9ffca54d71d8 @wilr wilr committed Feb 22, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 _config.php
View
@@ -26,4 +26,6 @@
* consult the Commenting class.
*/
-Commenting::add('SiteTree');
+if(class_exists('SiteTree')) {
+ Commenting::add('SiteTree');
+}

0 comments on commit 83a6de2

Please sign in to comment.