Merged from 1.7

This commit is contained in:
vyshane
2006-11-15 08:07:32 +00:00
parent 373503035f
commit f68a7947bd
2 changed files with 16 additions and 3 deletions
+6 -3
View File
@@ -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 {
}
}
?>
?>
+10
View File
@@ -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)) {