Doc: Reorder Android detection, the browser's user agent string contains the Linux keyword too.

This commit is contained in:
Rom Walton 2013-02-13 23:10:55 -05:00 committed by Oliver Bock
parent 54676d9d01
commit 1cd98b099b
1 changed files with 9 additions and 7 deletions

View File

@ -157,14 +157,16 @@ if (get_str2('all_platforms')) {
} else {
show_download('mac');
}
} else if (strstr($client_info, 'Linux') && strstr($client_info, 'Android')) {
// Check for Android before Linux, since Android contains the Linux kernel and the
// web browser user agent string list Linux too.
show_download('android');
} else if (strstr($client_info, 'Linux')) {
if (strstr($client_info, 'x86_64')) {
show_download('linuxx64');
} else {
show_download('linux');
}
} else if (strstr($client_info, 'Android')) {
show_download('android');
} else {
show_download(null);
}