mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
Merge branch 'MDL-74988' of https://github.com/paulholden/moodle
This commit is contained in:
commit
c599533958
@ -1496,8 +1496,19 @@ calendar,core_calendar|/calendar/view.php?view=month',
|
||||
$oldfile = $fs->create_file_from_string($old, 'old');
|
||||
|
||||
// Manually set the timestamps to use on files.
|
||||
$DB->set_field('files', 'timecreated', $origtime, ['id' => $newfile->get_id()]);
|
||||
$DB->set_field('files', 'timemodified', $origtime, ['id' => $newfile->get_id()]);
|
||||
$DB->set_field('files', 'timecreated', $origtime, [
|
||||
'contextid' => $newfile->get_contextid(),
|
||||
'component' => $newfile->get_component(),
|
||||
'filearea' => $newfile->get_filearea(),
|
||||
'itemid' => $newfile->get_itemid(),
|
||||
]);
|
||||
$DB->set_field('files', 'timemodified', $origtime, [
|
||||
'contextid' => $newfile->get_contextid(),
|
||||
'component' => $newfile->get_component(),
|
||||
'filearea' => $newfile->get_filearea(),
|
||||
'itemid' => $newfile->get_itemid(),
|
||||
]);
|
||||
|
||||
$DB->set_field('files', 'timecreated', 1, ['id' => $oldfile->get_id()]);
|
||||
$DB->set_field('files', 'timemodified', 1, ['id' => $oldfile->get_id()]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user