course publication MDL-19315 fix regression: do not delete any temp backup when advertising a course

This commit is contained in:
jerome mouneyrac 2010-05-26 06:30:57 +00:00
parent 804360f9e1
commit 8f6e76c1e6

View File

@ -177,13 +177,11 @@ if (has_capability('moodle/course:publish', get_context_instance(CONTEXT_COURSE,
$params['token'] = $registeredhub->token;
$curl->post($huburl."/local/hub/webservice/upload.php", $params);
}
//Delete the backup from user_tohub
$backupfile->delete();
}
//Delete the backup from user_tohub
$backupfile->delete();
//redirect to the index publis page
redirect(new moodle_url('/course/publish/index.php',
array('sesskey' => sesskey(), 'id' => $id, 'published' => true)));