From b1eb51911aff3291c4ae5d64dbccee8f2886016d Mon Sep 17 00:00:00 2001
From: csev
Date: Fri, 10 Sep 2021 01:11:47 +0000
Subject: [PATCH] Add option not to import discussions.
---
cc/export.php | 5 +++--
cc/index.php | 2 ++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/cc/export.php b/cc/export.php
index 1520a1b74c..a92225af29 100644
--- a/cc/export.php
+++ b/cc/export.php
@@ -60,7 +60,8 @@
@@ -236,7 +237,7 @@ function sendToCanvas() {
}
}
- if ( isset($module->discussions) ) {
+ if ( isset($module->discussions) && $topic != "none" ) {
foreach($module->discussions as $discussion ) {
$title = isset($discussion->title) ? $discussion->title : $module->title;
$text = isset($discussion->description) ? $discussion->description : $module->description;
diff --git a/cc/index.php b/cc/index.php
index 42cf66b52d..6591e2aeb9 100644
--- a/cc/index.php
+++ b/cc/index.php
@@ -69,6 +69,7 @@
+
@@ -131,6 +132,7 @@
+