Merge branch 'fix-symbian' of git://github.com/darenc/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2011-02-22 11:45:57 +01:00
commit c5530f4151

View file

@ -7454,14 +7454,14 @@ function check_php_version($version='5.2.4') {
if (strpos($agent, 'AppleWebKit') === false) { if (strpos($agent, 'AppleWebKit') === false) {
return false; return false;
} }
// Look for AppleWebKit, excluding strings with OmniWeb, Shiira and SimbianOS and any other mobile devices // Look for AppleWebKit, excluding strings with OmniWeb, Shiira and SymbianOS and any other mobile devices
if (strpos($agent, 'OmniWeb')) { // Reject OmniWeb if (strpos($agent, 'OmniWeb')) { // Reject OmniWeb
return false; return false;
} }
if (strpos($agent, 'Shiira')) { // Reject Shiira if (strpos($agent, 'Shiira')) { // Reject Shiira
return false; return false;
} }
if (strpos($agent, 'SimbianOS')) { // Reject SimbianOS if (strpos($agent, 'SymbianOS')) { // Reject SymbianOS
return false; return false;
} }
if (strpos($agent, 'Android')) { // Reject Androids too if (strpos($agent, 'Android')) { // Reject Androids too