Permalink
Browse files

MDL-34446 Completion report: Add sideways text support to more browsers

  • Loading branch information...
1 parent 470d47f commit 853dd863682664a8248d64292096580c04d94480 @sammarshallou sammarshallou committed Aug 10, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/moodlelib.php
View
@@ -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;
}
/**

0 comments on commit 853dd86

Please sign in to comment.