Closed Bug 481936 Opened 17 years ago Closed 17 years ago

Need to add beta versions to JavaScript build arrays

Categories

(www.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: clouserw, Assigned: clouserw)

References

Details

Attachments

(1 file)

Attached patch add jsbeta keysSplinter Review
Bug 481036 wants to add a locale-detecting button to the beta download page. To do that we've got to put the betas in the JS array (which was temporary code to begin with...) To use the patch just change writeDownloadItems("fx") to writeDownloadItems("fxbeta") on the page.
Attachment #365984 - Flags: review?(reed)
Attachment #365984 - Flags: review?(reed) → review-
Comment on attachment 365984 [details] [diff] [review] add jsbeta keys > $_newest_thunderbird = $_thunderbirdDetails->getNewestVersionForLocale($locale); >- $_oldest_thunderbird = $_thunderbirdDetails->getOldestVersionForLocale($locale); >+ $_beta_thunderbird = $_thunderbirdDetails->getOldestVersionForLocale($locale); >+ $_oldest_thunderbird = $_thunderbirdDetails->getDevelVersionForLocale($locale); These are backwards and in wrong order. Should be: $_oldest_thunderbird = $_thunderbirdDetails->getOldestVersionForLocale($locale); $_beta_thunderbird = $_thunderbirdDetails->getDevelVersionForLocale($locale); getDevelVersionForLocaleFromBuildArray(), getNewestVersionForLocaleFromBuildArray(), and getOldestVersionForLocaleFromBuildArray() in productDetails.class.php seems a bit too Firefox-centric. If you're serious about supporting Thunderbird with this, this code will need fixing. If not, then I guess it's ok for now.
I can switch that. Honestly, I'd like to see all Thunderbird stuff go somewhere else and be supported by the Messaging team. That may be pie in the sky though.
Comment on attachment 365984 [details] [diff] [review] add jsbeta keys Ok, r=me as long as you fix it.
Attachment #365984 - Flags: review- → review+
Assignee: nobody → clouserw
thanks, r22974
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Component: www.mozilla.org/firefox → www.mozilla.org
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: