--- a/inc/blurb.downloaddetect.inc Thu May 03 06:05:28 2012 +0000
+++ b/inc/blurb.downloaddetect.inc Thu May 03 06:11:05 2012 +0000
@@ -3,10 +3,7 @@
// Figure out what browser we're working with
$useragent = $_SERVER['HTTP_USER_AGENT'];
- $download_type = "source";
- $download_link = "/download/";
$download_version = $pidgin_version;
if (strstr($useragent, 'Win')) {
@@ -19,14 +16,17 @@
$download_os = "for Ubuntu";
$download_link = "/download/ubuntu/";
$download_version = $pidgin_ubuntu_version;
+ } else if (strstr($useragent, "Linux")) { + $download_type = "linux"; + $download_os = "for Linux"; + $download_link = "/download/linux/"; } else if (strstr($useragent, "Mac")) {
$download_os = "for Mac OS X";
$download_link = "/download/mac/";
- } else if (strstr($useragent, 'X11') ||
- strstr($useragent, 'Linux')) {
$download_type = "source";
- $download_link = "/download/source/";
+ $download_link = "/download/";