get_image now only returns the link, leaving the formating of the img tag up to the template

This commit is contained in:
gustav_delius
2006-02-18 21:08:34 +00:00
parent 997a2d5be3
commit 238bf03473
-2
View File
@@ -845,7 +845,6 @@ function quiz_get_image($question, $courseid) {
$img = '';
if ($question->image) {
$img .= '<img border="0" src="';
if (substr(strtolower($question->image), 0, 7) == 'http://') {
$img .= $question->image;
@@ -856,7 +855,6 @@ function quiz_get_image($question, $courseid) {
} else {
$img .= "$CFG->wwwroot/file.php?file=$courseid/$question->image";
}
$img .= '" alt="" />';
}
return $img;
}