From 8693dca9a0a7dca10382426ff61af4106b498090 Mon Sep 17 00:00:00 2001 From: gbateson Date: Fri, 17 Apr 2009 01:51:35 +0000 Subject: [PATCH] MDL-18883: fix setting of absolute urls for images in subfolders of course files --- question/format/hotpot/format.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { -- 2.39.5