From 804360f9e1ea94577c6c65d73b0555fd76e60093 Mon Sep 17 00:00:00 2001 From: jerome mouneyrac Date: Wed, 26 May 2010 06:13:58 +0000 Subject: [PATCH] course publication MDL-19315 fix warning bug during backup upload + send right ws token to the hub --- course/publish/metadata.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/course/publish/metadata.php b/course/publish/metadata.php index b73d4e65790..2c23f59cbba 100644 --- a/course/publish/metadata.php +++ b/course/publish/metadata.php @@ -170,15 +170,18 @@ if (has_capability('moodle/course:publish', get_context_instance(CONTEXT_COURSE, // send backup if ($share) { foreach ($courseids as $courseid) { + $params = array(); $params['filetype'] = BACKUP_FILE_TYPE; $params['courseid'] = $courseid; $params['file'] = $backupfile; + $params['token'] = $registeredhub->token; $curl->post($huburl."/local/hub/webservice/upload.php", $params); } } - //TODO: Delete the backup from user_tohub + //Delete the backup from user_tohub + $backupfile->delete(); //redirect to the index publis page