MDL-7434 all images that convey information should have alt text to convey that information - part 2
This commit is contained in:
@@ -45,6 +45,7 @@ function string_file_picture_tex($imagefile, $tex= "", $height="", $width="", $a
|
||||
global $CFG;
|
||||
|
||||
$output = "";
|
||||
$origtex = $tex;
|
||||
if ($tex) {
|
||||
$tex = str_replace('&','&',$tex);
|
||||
$tex = str_replace('<','<',$tex);
|
||||
@@ -69,7 +70,7 @@ function string_file_picture_tex($imagefile, $tex= "", $height="", $width="", $a
|
||||
$output .= urlencode($tex) . "', 'popup', 'menubar=0,location=0,scrollbars,";
|
||||
$output .= "resizable,width=300,height=240', 0);\">";
|
||||
}
|
||||
$output .= "<img class=\"texrender\" border=\"0\" $title $height $width alt=\"\" src=\"";
|
||||
$output .= "<img class=\"texrender\" border=\"0\" $title $height $width alt=\"".s($origtex)."\" src=\"";
|
||||
if ($CFG->slasharguments) { // Use this method if possible for better caching
|
||||
$output .= "$CFG->wwwroot/$CFG->texfilterdir/pix.php/$imagefile";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user