mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-28657 backup: make automated backup filenames site admin-configurable
This commit is contained in:
parent
ead4f180a0
commit
66150286b5
3 changed files with 4 additions and 1 deletions
|
@ -356,7 +356,7 @@ abstract class backup_cron_automated_helper {
|
|||
$dir = null;
|
||||
}
|
||||
if (!empty($dir) && $storage !== 0) {
|
||||
$filename = backup_plan_dbops::get_default_backup_filename($format, $type, $course->id, $users, $anonymised, true);
|
||||
$filename = backup_plan_dbops::get_default_backup_filename($format, $type, $course->id, $users, $anonymised, !$config->backup_shortname);
|
||||
$outcome = $file->copy_content_to($dir.'/'.$filename);
|
||||
if ($outcome && $storage === 1) {
|
||||
$file->delete();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue