From 96ef5c792add55618252c2be87c3a088d60b1be5 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 18 Jul 2006 15:37:17 +0000 Subject: [PATCH] Fixed typo which caused images in questions to fail to display if NOT using slasharguments. Merged from HEAD - original checkin was 1.49 to 1.50 by danstowell. --- lib/questionlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/questionlib.php b/lib/questionlib.php index 924b6bfb477..19ee609c8aa 100644 --- a/lib/questionlib.php +++ b/lib/questionlib.php @@ -1107,7 +1107,7 @@ function get_question_image($question, $courseid) { $img .= "$CFG->wwwroot/file.php/$courseid/$question->image"; } else { - $img .= "$CFG->wwwroot/file.php?file=$courseid/$question->image"; + $img .= "$CFG->wwwroot/file.php?file=/$courseid/$question->image"; } } return $img;