www: 702fa5da: Link to /download/linux/ if the browser
markdoliner at pidgin.im
markdoliner at pidgin.im
Thu May 3 02:17:10 EDT 2012
----------------------------------------------------------------------
Revision: 702fa5dacd6244326b77d77a20971f8243e96540
Parent: c08d7e919d8e6c6298639d320cbff957b0c916f0
Author: markdoliner at pidgin.im
Date: 05/03/12 02:11:05
Branch: im.pidgin.www
URL: http://d.pidgin.im/viewmtn/revision/info/702fa5dacd6244326b77d77a20971f8243e96540
Changelog:
Link to /download/linux/ if the browser user-agent contains "Linux"
Changes against parent c08d7e919d8e6c6298639d320cbff957b0c916f0
patched inc/blurb.downloaddetect.inc
-------------- next part --------------
============================================================
--- inc/blurb.downloaddetect.inc 9310592332e514298be07df99863c02fee91bac1
+++ inc/blurb.downloaddetect.inc bd25be3cdc25b5ecdc156c154645530934760378
@@ -3,10 +3,7 @@
// Figure out what browser we're working with
$useragent = $_SERVER['HTTP_USER_AGENT'];
- // Default vals
- $download_type = "source";
- $download_link = "/download/";
- $download_os = "";
+ // Default val
$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_type = "mac";
$download_os = "for Mac OS X";
$download_link = "/download/mac/";
- } else if (strstr($useragent, 'X11') ||
- strstr($useragent, 'Linux')) {
+ } else {
$download_type = "source";
$download_os = "Source";
- $download_link = "/download/source/";
+ $download_link = "/download/";
}
?>
More information about the Commits
mailing list