mirror of
https://github.com/moodle/moodle.git
synced 2025-07-24 07:41:40 +02:00
MDL-22142 - quick hack until P26 gets fixed
This commit is contained in:
@@ -190,6 +190,13 @@ abstract class backup_helper {
|
||||
$id = $dinfo[0]->id; // Id of activity/section/course (depends of type)
|
||||
$courseid = $dinfo[0]->courseid; // Id of the course
|
||||
|
||||
// Quick hack. If for any reason, filename is blank, fix it here.
|
||||
// This hack will be out once MDL-22142 - P26 gets fixed
|
||||
if (empty($filename)) {
|
||||
$filename = backup_plan_dbops::get_default_backup_filename('moodle2', $backuptype, $id, $hasusers, $isannon);
|
||||
}
|
||||
|
||||
|
||||
// Backups of type IMPORT aren't stored ever
|
||||
if ($backupmode == backup::MODE_IMPORT) {
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user