mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
Merge branch 'MDL-31482-master' of git://github.com/sammarshallou/moodle
This commit is contained in:
commit
1dd9848042
2 changed files with 11 additions and 1 deletions
|
@ -8279,7 +8279,8 @@ function get_device_type() {
|
|||
return 'tablet';
|
||||
}
|
||||
|
||||
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.') !== false) {
|
||||
// Safe way to check for IE6 and not get false positives for some IE 7/8 users
|
||||
if (substr($_SERVER['HTTP_USER_AGENT'], 0, 34) === 'Mozilla/4.0 (compatible; MSIE 6.0;') {
|
||||
return 'legacy';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue