MDL-22528: fixed AJAX Course editing in Chrome and Safari.

This commit is contained in:
Rossiani Wijaya
2010-10-28 07:13:56 +00:00
parent 6c4e8db081
commit 4756795bf7
3 changed files with 10 additions and 6 deletions
+1 -3
View File
@@ -5,6 +5,4 @@
$CFG->ajaxcapable = true;
$CFG->ajaxtestedbrowsers = array('MSIE' => 6.0, 'Gecko' => 20061111);
$CFG->ajaxtestedbrowsers = array('MSIE' => 6.0, 'Gecko' => 20061111, 'Safari'=>531, 'Chrome'=>6.0);
+1 -3
View File
@@ -5,6 +5,4 @@
$CFG->ajaxcapable = true;
$CFG->ajaxtestedbrowsers = array('MSIE' => 6.0, 'Gecko' => 20061111);
$CFG->ajaxtestedbrowsers = array('MSIE' => 6.0, 'Gecko' => 20061111, 'Safari'=>531, 'Chrome'=>6.0);
+8
View File
@@ -7565,6 +7565,14 @@ function check_php_version($version='5.2.4') {
break;
case 'Chrome':
if (preg_match("/Chrome\/(.*)[ ]+/i", $agent, $match)) {
if (version_compare($match[1], $version) >= 0) {
return true;
}
}
break;
case 'Safari iOS': /// Safari on iPhone and iPad
if (strpos($agent, 'iPhone')) {
return true;