Merged from 1.7
This commit is contained in:
@@ -9,8 +9,10 @@ function require_js($list) {
|
||||
global $CFG;
|
||||
$output = '';
|
||||
|
||||
if (!check_browser_version('MSIE', 6.0) && !check_browser_version('Firefox', 1.5)) {
|
||||
// We still have issues with YUI in other browsers.
|
||||
if (!check_browser_version('MSIE', 6.0)
|
||||
&& !check_browser_version('Firefox', 1.5)
|
||||
&& !check_browser_version('Camino', 1.0.2)) {
|
||||
// We still have issues with AJAX in other browsers.
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -102,4 +104,5 @@ class jsportal {
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
?>
|
||||
@@ -5155,6 +5155,16 @@ function check_php_version($version='4.1.0') {
|
||||
|
||||
switch ($brand) {
|
||||
|
||||
case 'Camino': /// Mozilla Firefox browsers
|
||||
|
||||
if (preg_match("/Camino\/([0-9\.]+)/i", $agent, $match)) {
|
||||
if (version_compare($match[1], $version) >= 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
case 'Firefox': /// Mozilla Firefox browsers
|
||||
|
||||
if (preg_match("/Firefox\/([0-9\.]+)/i", $agent, $match)) {
|
||||
|
||||
Reference in New Issue
Block a user