Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-30901 report_progress Removing screenreader setting usage and add…

…ing a title attribute for screen readers
  • Loading branch information...
commit 13cd661f1be5e85450d9c2088aa3718a2a046711 1 parent a3ab18c
@dmonllao dmonllao authored
Showing with 5 additions and 6 deletions.
  1. +2 −4 lib/moodlelib.php
  2. +3 −2 report/progress/index.php
View
6 lib/moodlelib.php
@@ -8815,11 +8815,9 @@ function get_browser_version_classes() {
* @return bool True for yes, false for no
*/
function can_use_rotated_text() {
- global $USER;
- return (check_browser_version('MSIE', 9) || check_browser_version('Firefox', 2) ||
+ return check_browser_version('MSIE', 9) || check_browser_version('Firefox', 2) ||
check_browser_version('Chrome', 21) || check_browser_version('Safari', 536.25) ||
- check_browser_version('Opera', 12) || check_browser_version('Safari iOS', 533)) &&
- !$USER->screenreader;
+ check_browser_version('Opera', 12) || check_browser_version('Safari iOS', 533);
}
/**
View
5 report/progress/index.php
@@ -326,12 +326,13 @@ function csv_quote($value) {
if ($csv) {
print $sep.csv_quote(strip_tags($activity->name)).$sep.csv_quote($datetext);
} else {
+ $formattedactivityname = format_string($activity->name, true, array('context' => $context));
print '<th scope="col" class="'.$activity->datepassedclass.'">'.
'<a href="'.$CFG->wwwroot.'/mod/'.$activity->modname.
- '/view.php?id='.$activity->id.'">'.
+ '/view.php?id='.$activity->id.'" title="' . $formattedactivityname . '">'.
'<img src="'.$OUTPUT->pix_url('icon', $activity->modname).'" alt="'.
get_string('modulename',$activity->modname).'" /> <span class="completion-activityname">'.
- format_string($activity->name).'</span></a>';
+ $formattedactivityname.'</span></a>';
if ($activity->completionexpected) {
print '<div class="completion-expected"><span>'.$datetext.'</span></div>';
}
Please sign in to comment.
Something went wrong with that request. Please try again.