Skip to content

Commit

Permalink
Added in support for OS X 10.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Aug 26, 2009
1 parent 87fa618 commit 9ba7302
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/testswarm.sql
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ INSERT INTO `useragents` (`id`, `name`, `engine`, `version`, `os`, `active`, `cu
(52, 'Opera 10', 'presto', '^2.2.15$', 'win7', 1, 1, 1, 0, 0, 0),
(53, 'Opera 9.6', 'presto', '^2.1', 'win7', 1, 0, 1, 0, 0, 0),
(54, 'Opera 10', 'presto', '^2.2.15$', 'linux', 1, 1, 1, 0, 0, 0),
(55, 'Opera 9.6', 'presto', '^2.1', 'linux', 1, 0, 1, 0, 0, 0);
(55, 'Opera 9.6', 'presto', '^2.1', 'linux', 1, 0, 1, 0, 0, 0),
(56, 'Firefox 3.5', 'gecko', '^1.9.1[0-9.]*$', 'osx10.6', 1, 1, 1, 0, 0, 0),
(57, 'Safari 4.0', 'webkit', '^53', 'osx10.6', 1, 1, 1, 0, 0, 0);

-- --------------------------------------------------------

Expand Down
3 changes: 3 additions & 0 deletions content/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
loadBrowsers("osx10.4");
loadBrowsers("osx10.5");
echo "<br style='clear:both;'/>";
loadBrowsers("osx10.6");
loadBrowsers("osx");
loadBrowsers("linux");
loadBrowsers("2000");
Expand Down Expand Up @@ -61,6 +62,8 @@ function loadBrowsers($name) {
$name = "OS X 10.4";
} else if ( $name == "osx10.5" ) {
$name = "OS X 10.5";
} else if ( $name == "osx10.6" ) {
$name = "OS X 10.6";
} else if ( $name == "osx" ) {
$name = "OS X";
} else if ( $name == "linux" ) {
Expand Down
2 changes: 2 additions & 0 deletions content/tinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ function get_status2($num, $fail, $error){
$name = "OS X 10.4";
} else if ( $name == "osx10.5" ) {
$name = "OS X 10.5";
} else if ( $name == "osx10.6" ) {
$name = "OS X 10.6";
} else if ( $name == "osx" ) {
$name = "OS X";
} else if ( $name == "linux" ) {
Expand Down
2 changes: 2 additions & 0 deletions inc/browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
$os = "osx10.4";
} else if ( strpos($lowerUA, "os x 10.5") > -1 || strpos($lowerUA, "os x 10_5") > -1 ) {
$os = "osx10.5";
} else if ( strpos($lowerUA, "os x 10.6") > -1 || strpos($lowerUA, "os x 10_6") > -1 ) {
$os = "osx10.6";
} else if ( strpos($lowerUA, "os x") > -1 ) {
$os = "osx";
} else if ( strpos($lowerUA, "linux") > -1 ) {
Expand Down

0 comments on commit 9ba7302

Please sign in to comment.