Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-18883: fix setting of absolute urls for images in subfolders of c…

…ourse files
  • Loading branch information...
commit 2da979b64dab98051ff634ad8893db7d8757b5d8 1 parent eb80e65
gbateson authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 question/format/hotpot/format.php
View
4 question/format/hotpot/format.php
@@ -47,7 +47,9 @@ function readquestions ($lines) {
// 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 {
Please sign in to comment.
Something went wrong with that request. Please try again.