MDL-48265 feedback: Added alt text to ghostscript test image

This commit is contained in:
Brian Barnes
2014-11-18 16:40:04 +13:00
parent 0ac6d59990
commit c0c96e8261
2 changed files with 2 additions and 1 deletions
@@ -51,6 +51,7 @@ $string['filter'] = 'Filter comments...';
$string['generatefeedback'] = 'Generate feedback PDF';
$string['gotopage'] = 'Go to page';
$string['green'] = 'Green';
$string['gsimage'] = 'Ghostscript test image';
$string['gspath'] = 'Ghostscript path';
$string['gspath_help'] = 'On most Linux installs, this can be left as \'/usr/bin/gs\'. On Windows it will be something like \'c:\\gs\\bin\\gswin32c.exe\' (make sure there are no spaces in the path - if necessary copy the files \'gswin32c.exe\' and \'gsdll32.dll\' to a new folder without a space in the path)';
$string['highlight'] = 'Highlight';
+1 -1
View File
@@ -55,7 +55,7 @@ switch ($result->status) {
$msg = get_string('test_ok', 'assignfeedback_editpdf');
$msg .= html_writer::empty_tag('br');
$imgurl = new moodle_url($PAGE->url, array('sendimage' => 1));
$msg .= html_writer::empty_tag('img', array('src' => $imgurl));
$msg .= html_writer::empty_tag('img', array('src' => $imgurl, 'alt' => get_string('gsimage', 'assignfeedback_editpdf')));
break;
case assignfeedback_editpdf\pdf::GSPATH_ERROR: