From: gbateson Date: Fri, 17 Apr 2009 01:51:35 +0000 (+0000) Subject: MDL-18883: fix setting of absolute urls for images in subfolders of course files X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8693dca9a0a7dca10382426ff61af4106b498090;p=moodle.git MDL-18883: fix setting of absolute urls for images in subfolders of course files --- diff --git a/question/format/hotpot/format.php b/question/format/hotpot/format.php index efc708c1d2..379a146186 100644 --- a/question/format/hotpot/format.php +++ b/question/format/hotpot/format.php @@ -48,7 +48,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 {