mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
course publication MDL-19315 remove personal log file call
This commit is contained in:
parent
a8f201f88c
commit
7cfb760e41
@ -69,7 +69,6 @@ class community {
|
|||||||
$params['filetype'] = BACKUP_FILE_TYPE;
|
$params['filetype'] = BACKUP_FILE_TYPE;
|
||||||
|
|
||||||
$url = new moodle_url($huburl.'/local/hub/webservice/download.php', $params);
|
$url = new moodle_url($huburl.'/local/hub/webservice/download.php', $params);
|
||||||
varlog($url);
|
|
||||||
$path = $CFG->dataroot.'/temp/download/'.'backup_'.$courseid.".zip";
|
$path = $CFG->dataroot.'/temp/download/'.'backup_'.$courseid.".zip";
|
||||||
$fp = fopen($path, 'w');
|
$fp = fopen($path, 'w');
|
||||||
$ch = curl_init($huburl.'/local/hub/webservice/download.php?filetype='.BACKUP_FILE_TYPE.'&courseid='.$courseid);
|
$ch = curl_init($huburl.'/local/hub/webservice/download.php?filetype='.BACKUP_FILE_TYPE.'&courseid='.$courseid);
|
||||||
|
@ -129,8 +129,7 @@ if (has_capability('moodle/course:publish', get_context_instance(CONTEXT_COURSE,
|
|||||||
require_once($CFG->dirroot."/webservice/xmlrpc/lib.php");
|
require_once($CFG->dirroot."/webservice/xmlrpc/lib.php");
|
||||||
$xmlrpcclient = new webservice_xmlrpc_client();
|
$xmlrpcclient = new webservice_xmlrpc_client();
|
||||||
$courseids = $xmlrpcclient->call($serverurl, $registeredhub->token, $function, $params);
|
$courseids = $xmlrpcclient->call($serverurl, $registeredhub->token, $function, $params);
|
||||||
varlog('The course id after retrieveing from ws:');
|
|
||||||
varlog($courseids);
|
|
||||||
if (count($courseids) != 1) {
|
if (count($courseids) != 1) {
|
||||||
throw new moodle_exception('coursewronglypublished');
|
throw new moodle_exception('coursewronglypublished');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user