From a2d9dff8fc20dcc191b78248b1227a7a41aa5511 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 26 Nov 2006 16:53:32 +0000 Subject: [PATCH] MDL-7434 all images that convey information should have alt text to convey that information - part 4 --- lib/editor/htmlarea/coursefiles.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/editor/htmlarea/coursefiles.php b/lib/editor/htmlarea/coursefiles.php index f75284850b..e85ecd3c9a 100644 --- a/lib/editor/htmlarea/coursefiles.php +++ b/lib/editor/htmlarea/coursefiles.php @@ -608,7 +608,7 @@ function printfilelist($filelist) { foreach ($filelist as $file) { if (is_dir($basedir.$file)) { - echo "pixpath/f/folder.gif\" height=\"16\" width=\"16\" alt=\"\" /> $file
"; + echo "pixpath/f/folder.gif\" height=\"16\" width=\"16\" alt=\"".get_string('folder')."\" /> $file
"; $subfilelist = array(); $currdir = opendir($basedir.$file); while (false !== ($subfile = readdir($currdir))) { @@ -620,7 +620,7 @@ function printfilelist($filelist) { } else { $icon = mimeinfo("icon", $file); - echo "pixpath/f/$icon\" height=\"16\" width=\"16\" alt=\"\" /> $file
"; + echo "pixpath/f/$icon\" height=\"16\" width=\"16\" alt=\"".get_string('file')."\" /> $file
"; } } } @@ -705,7 +705,7 @@ function displaydir ($wdir) { } print "\n"; print ""; - print "wwwroot/lib/editor/htmlarea/images/folderup.gif\" height=\"14\" width=\"24\" border=\"0\" alt=\"Move up\" />"; + print "wwwroot/lib/editor/htmlarea/images/folderup.gif\" height=\"14\" width=\"24\" border=\"0\" alt=\"".get_string('parentfolder')."\" />"; print "\n\n"; } @@ -727,7 +727,7 @@ function displaydir ($wdir) { if ($usecheckboxes) { print_cell("center", ""); } - print_cell("left", "pixpath/f/folder.gif\" height=\"16\" width=\"16\" border=\"0\" alt=\"folder\" /> ".htmlspecialchars($dir).""); + print_cell("left", "pixpath/f/folder.gif\" height=\"16\" width=\"16\" border=\"0\" alt=\"".get_string('folder')."\" /> ".htmlspecialchars($dir).""); print_cell("right", " "); print_cell("right", $filedate); -- 2.39.5