mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
course publication MDL-19315 fix regression: do not delete any temp backup when advertising a course
This commit is contained in:
parent
804360f9e1
commit
8f6e76c1e6
@ -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)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user