course publication MDL-19315 remove personal log file call

This commit is contained in:
jerome mouneyrac 2010-05-03 11:39:09 +00:00
parent a8f201f88c
commit 7cfb760e41
2 changed files with 1 additions and 3 deletions

View File

@ -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);

View File

@ -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');
}