mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-54584 repository: Set a default filename in prepare_file
This commit is contained in:
parent
65cbefc403
commit
388a8dbc4f
@ -1617,6 +1617,9 @@ abstract class repository implements cacheable_object {
|
||||
* @return file path
|
||||
*/
|
||||
public function prepare_file($filename) {
|
||||
if (empty($filename)) {
|
||||
$filename = 'file';
|
||||
}
|
||||
return sprintf('%s/%s', make_request_directory(), $filename);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user