mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02: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
1 changed files with 3 additions and 5 deletions
|
@ -177,13 +177,11 @@ if (has_capability('moodle/course:publish', get_context_instance(CONTEXT_COURSE,
|
||||||
$params['token'] = $registeredhub->token;
|
$params['token'] = $registeredhub->token;
|
||||||
$curl->post($huburl."/local/hub/webservice/upload.php", $params);
|
$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 to the index publis page
|
||||||
redirect(new moodle_url('/course/publish/index.php',
|
redirect(new moodle_url('/course/publish/index.php',
|
||||||
array('sesskey' => sesskey(), 'id' => $id, 'published' => true)));
|
array('sesskey' => sesskey(), 'id' => $id, 'published' => true)));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue