Merge branch 'MDL-31482-master' of git://github.com/sammarshallou/moodle

This commit is contained in:
Aparup Banerjee 2012-02-08 09:57:55 +08:00
commit 1dd9848042
2 changed files with 11 additions and 1 deletions

View file

@ -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';
}