mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-18883: fix setting of absolute urls for images in subfolders of course files
This commit is contained in:
parent
eb80e65d98
commit
2da979b64d
1 changed files with 3 additions and 1 deletions
|
@ -47,7 +47,9 @@ class qformat_hotpot extends qformat_default {
|
|||
|
||||
// get import file name
|
||||
global $params;
|
||||
if (isset($params) && !empty($params->choosefile)) {
|
||||
if (! empty($this->realfilename)) {
|
||||
$filename = $this->realfilename;
|
||||
} else if (isset($params) && !empty($params->choosefile)) {
|
||||
// course file (Moodle >=1.6+)
|
||||
$filename = $params->choosefile;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue