MDL-7434 all images that convey information should have alt text to convey that information - part 2

This commit is contained in:
skodak
2006-11-25 18:09:33 +00:00
parent d0e35419c5
commit 2bbaf749c8
10 changed files with 42 additions and 30 deletions
+2 -1
View File
@@ -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('<','&lt;',$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 {