From bbf795dfde730fdbfd29098722f475dfee23cc29 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 23 Jul 2008 10:32:35 +0000 Subject: [PATCH] =?UTF-8?q?MDL-15792=20-=20Images=20in=20question=20don't?= =?UTF-8?q?=20display.=20This=20is=20a=20regression=20from=20MDL-14279.=20?= =?UTF-8?q?Fix=20thanks=20to=20Yolanda=20Ord=F3=F1ez=20Rufat.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/questionlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/questionlib.php b/lib/questionlib.php index 88a724c3834..dce4c1903e7 100644 --- a/lib/questionlib.php +++ b/lib/questionlib.php @@ -1647,7 +1647,7 @@ function get_question_image($question) { } else { require_once($CFG->libdir .'/filelib.php'); - $img = get_file_url("$courseid/{$question->image}"); + $img = get_file_url("$coursefilesdir/{$question->image}"); } } return $img;