From f79f249490a7510da3046557e9bde2332b9671a6 Mon Sep 17 00:00:00 2001 From: nfreear Date: Mon, 15 Oct 2007 10:04:41 +0000 Subject: [PATCH] Follow up fix for MDL-11436 'Encapsulate "accesshide" HTML class in function', and use. --- calendar/lib.php | 2 +- lib/tablelib.php | 6 +++--- lib/weblib.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/calendar/lib.php b/calendar/lib.php index 3292d70ec3..7bb5d7d6fe 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -321,7 +321,7 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y $popup = calendar_get_popup(true, false); $cell = ''.$day.''; } - $cell = ''.$today.' '.$cell; + $cell = get_accesshide($today.' ').$cell; } // Just display it diff --git a/lib/tablelib.php b/lib/tablelib.php index 6494965c42..4fd85b7b58 100644 --- a/lib/tablelib.php +++ b/lib/tablelib.php @@ -654,8 +654,8 @@ class flexible_table { $fsortorder = get_string('asc'); $lsortorder = get_string('asc'); } - $this->headers[$index] = ''.get_string('firstname').''.get_string('sortby').' '.get_string('firstname').' '.$fsortorder.' '.$icon_sort_first.' / '. - ''.get_string('lastname').''.get_string('sortby').' '.get_string('lastname').' '.$lsortorder.' '.$icon_sort_last; + $this->headers[$index] = ''.get_string('firstname').get_accesshide(get_string('sortby').' '.get_string('firstname').' '.$fsortorder).' '.$icon_sort_first.' / '. + ''.get_string('lastname').get_accesshide(get_string('sortby').' '.get_string('lastname').' '.$lsortorder).' '.$icon_sort_last; } break; @@ -677,7 +677,7 @@ class flexible_table { } else { $localsortorder = get_string('asc'); } - $this->headers[$index] = ''.$this->headers[$index].''.get_string('sortby').' '.$this->headers[$index].' '.$localsortorder.''; + $this->headers[$index] = ''.$this->headers[$index].get_accesshide(get_string('sortby').' '.$this->headers[$index].' '.$localsortorder).''; } } diff --git a/lib/weblib.php b/lib/weblib.php index 8d41b194bb..209916bcc4 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -3499,7 +3499,7 @@ function build_navigation($extranavlinks, $cm = null) { //Construct an unordered list from $navlinks //Accessibility: heading hidden from visual browsers by default. - $navigation = '

'.get_string('youarehere','access')."