You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ma...@apache.org on 2014/04/30 21:16:33 UTC

svn commit: r1591457 - /openoffice/ooo-site/trunk/content/download/download.js

Author: marcus
Date: Wed Apr 30 19:16:32 2014
New Revision: 1591457

URL: http://svn.apache.org/r1591457
Log:
Let the release mode values start with '1' instead of '0', to avoid errors

Modified:
    openoffice/ooo-site/trunk/content/download/download.js

Modified: openoffice/ooo-site/trunk/content/download/download.js
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/download.js?rev=1591457&r1=1591456&r2=1591457&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/download.js Wed Apr 30 19:16:32 2014
@@ -110,7 +110,7 @@ function getLanguage() {
  */
 function hasMirrorLink( rel_mode ) {
 
-	if ( rel_mode == 0 ) {
+	if ( rel_mode == 1 ) {
 		// Release mode
 		// First check if the Beta release languages (not available as current stable release !) are set in browser
 		if ( LANG_ISO == "bg" || LANG_ISO == "da" || LANG_ISO == "hi" || LANG_ISO == "nb" || LANG_ISO == "th" ) {
@@ -155,7 +155,7 @@ function getLink( rel_mode ) {
 
 	// If no release mode was given, assume it's about the stable release
 	if ( rel_mode == undefined )
-		rel_mode = 0;
+		rel_mode = 1;
 
 	getLanguage();
 	getPlatform( rel_mode );
@@ -175,7 +175,7 @@ function getLink( rel_mode ) {
 	// If language is supported, then provide a download link. 
 	if ( hasMirrorLink( rel_mode ) ) {
 		// Release mode
-		if ( rel_mode == 0 ) {
+		if ( rel_mode == 1 ) {
 			// If platform is too old, then provide a general download link to the archive.
 			if ( OLD_PLATFORM ) {
 				// If platform is Mac OS X <=10.6, then provide a download link with previous AOO version.
@@ -337,7 +337,7 @@ function getLink( rel_mode ) {
  		return LINK;
 	} else {
 		// Release mode
-		if ( rel_mode == 0 ) {
+		if ( rel_mode == 1 ) {
 			// If language is not supported, then provide the link from the Native Language (NL) group.
 			LINK	= LANG_ARRAY[ 4 ];
 		} else {
@@ -549,7 +549,7 @@ function getFilesize( rel_mode ) {
 
 	// If a platform was found and no error occurred, assign the array data and filesize from the release matrix
 	if ( RELEASE_MATRIX_PLATFORM_POS > -1 && !ERROR ) {
-		if ( rel_mode == 0 ) {
+		if ( rel_mode == 1 ) {
 			// Release mode
 			// Assign all values from the release matrix of language and platform
 			RELEASE_MATRIX_PLATFORM	= release_matrix[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS ];