Skip to content

Commit

Permalink
MDL-34446 Completion report: Add sideways text support to more browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
sammarshallou committed Aug 10, 2012
1 parent 470d47f commit 853dd86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/moodlelib.php
Expand Up @@ -8688,7 +8688,10 @@ function get_browser_version_classes() {
*/
function can_use_rotated_text() {
global $USER;
return ajaxenabled(array('Firefox' => 2.0)) && !$USER->screenreader;;
return (check_browser_version('MSIE', 9) || check_browser_version('Firefox', 2) ||
check_browser_version('Chrome', 21) || check_browser_version('Safari', 536.26) ||
check_browser_version('Opera', 12) || check_browser_version('Safari iOS', 533)) &&
!$USER->screenreader;
}

/**
Expand Down

0 comments on commit 853dd86

Please sign in to comment.