openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r911500 - in /websites/staging/ooo-site/trunk: cgi-bin/ content/ content/download/test/download_droplist.js
Date Thu, 05 Jun 2014 22:40:36 GMT
Author: buildbot
Date: Thu Jun  5 22:40:36 2014
New Revision: 911500

Log:
Staging update by buildbot for ooo-site

Modified:
    websites/staging/ooo-site/trunk/cgi-bin/   (props changed)
    websites/staging/ooo-site/trunk/content/   (props changed)
    websites/staging/ooo-site/trunk/content/download/test/download_droplist.js

Propchange: websites/staging/ooo-site/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Jun  5 22:40:36 2014
@@ -1 +1 @@
-1600783
+1600785

Propchange: websites/staging/ooo-site/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Jun  5 22:40:36 2014
@@ -1 +1 @@
-1600783
+1600785

Modified: websites/staging/ooo-site/trunk/content/download/test/download_droplist.js
==============================================================================
--- websites/staging/ooo-site/trunk/content/download/test/download_droplist.js (original)
+++ websites/staging/ooo-site/trunk/content/download/test/download_droplist.js Thu Jun  5
22:40:36 2014
@@ -1474,7 +1474,8 @@ function getPlatform() {
 		};
 	}
 
-	if( os ) {
+	// If the browser's user agent string is set with something, try to recognize its content.
+	if( ua !== "" ) {
 		// Recognized but *not supported* platforms/OS, set $UI_PLATFORM_NO_SUP to show it to the
user.
 
 		// Mobile devices.
@@ -1618,10 +1619,10 @@ function getPlatform() {
 		} 
 	} 
 
-	// If nothing was recognized until now, set $UI_PLATFORM to show it to the user.
+	// If nothing was recognized until now, set $UI_PLATFORM_NO_SUP to show it to the user.
 	if( UI_PLATFORM === "" ) {
-		UI_PLATFORM = "unknown platform/OS";
-		ERROR	    = true;
+		UI_PLATFORM_NO_SUP = "unknown operating system / platform";
+		ERROR		   = true;
 	}
 
 	return PLATFORM;



Mime
View raw message