mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Prevent SQL error when forcing download. MDL-15921 ; merged from 19_STABLE
This commit is contained in:
parent
8f3f6cc3fa
commit
7facd18e7d
1 changed files with 1 additions and 0 deletions
|
@ -135,6 +135,7 @@ class resource_file extends resource_base {
|
|||
$alloptions = $RESOURCE_WINDOW_OPTIONS;
|
||||
|
||||
if ($resource->forcedownload) {
|
||||
$resource->popup = '';
|
||||
$resource->options = 'forcedownload';
|
||||
|
||||
} else if ($resource->windowpopup) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue