From dfd89ae5a21cda9a253a33f33e1f0df5890f3527 Mon Sep 17 00:00:00 2001 From: Jamie Pratt Date: Wed, 24 Aug 2011 19:48:46 +0700 Subject: [PATCH] MDL-47494 ddimageortext: NOBUG removed exception as it messes up unit tests where files do not exist and are not needed. --- question/type/ddimageortext/renderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/type/ddimageortext/renderer.php b/question/type/ddimageortext/renderer.php index fb5fe30679c..6f8d585c3c6 100755 --- a/question/type/ddimageortext/renderer.php +++ b/question/type/ddimageortext/renderer.php @@ -144,7 +144,7 @@ class qtype_ddimagetoimage_renderer extends qtype_with_combined_feedback_rendere return $url->out(); } } - throw new coding_exception('File not found in filearea '.$filearea); + return null; } protected function hidden_field_for_qt_var(question_attempt $qa, $varname, $value = null) {