get_image now only returns the link, leaving the formating of the img tag up to the template
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user