diff --git a/blocks/community/locallib.php b/blocks/community/locallib.php index 2ad0ce5d966..7c841acf9ab 100644 --- a/blocks/community/locallib.php +++ b/blocks/community/locallib.php @@ -69,7 +69,6 @@ class community { $params['filetype'] = BACKUP_FILE_TYPE; $url = new moodle_url($huburl.'/local/hub/webservice/download.php', $params); - varlog($url); $path = $CFG->dataroot.'/temp/download/'.'backup_'.$courseid.".zip"; $fp = fopen($path, 'w'); $ch = curl_init($huburl.'/local/hub/webservice/download.php?filetype='.BACKUP_FILE_TYPE.'&courseid='.$courseid); diff --git a/course/publish/publish.php b/course/publish/publish.php index 062d23a389e..4039eba6df8 100644 --- a/course/publish/publish.php +++ b/course/publish/publish.php @@ -129,8 +129,7 @@ if (has_capability('moodle/course:publish', get_context_instance(CONTEXT_COURSE, require_once($CFG->dirroot."/webservice/xmlrpc/lib.php"); $xmlrpcclient = new webservice_xmlrpc_client(); $courseids = $xmlrpcclient->call($serverurl, $registeredhub->token, $function, $params); - varlog('The course id after retrieveing from ws:'); - varlog($courseids); + if (count($courseids) != 1) { throw new moodle_exception('coursewronglypublished'); }