Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app
diff options
context:
space:
mode:
Diffstat (limited to 'site/app')
-rw-r--r--site/app/views/helpers/install_button.php2
-rw-r--r--site/app/webroot/js/amo2009/addons.js3
2 files changed, 4 insertions, 1 deletions
diff --git a/site/app/views/helpers/install_button.php b/site/app/views/helpers/install_button.php
index 0c2655e..7c27738 100644
--- a/site/app/views/helpers/install_button.php
+++ b/site/app/views/helpers/install_button.php
@@ -338,7 +338,7 @@ class InstallButtonHelper extends Helper {
$flags = '';
if (in_array('recommended', $this->flags())) {
$flags = '<strong>'.___('recommended').'</strong>';
- } else if (in_array('experimental', $this->flags()) && $this->loggedIn()) {
+ } else if (in_array('experimental', $this->flags())) {
$flags = '<strong>'.___('experimental').'</strong>';
}
return $flags;
diff --git a/site/app/webroot/js/amo2009/addons.js b/site/app/webroot/js/amo2009/addons.js
index 3a3f04e..69d3255 100644
--- a/site/app/webroot/js/amo2009/addons.js
+++ b/site/app/webroot/js/amo2009/addons.js
@@ -231,6 +231,9 @@ function initDownloadPopup(triggerID, popupID)
* @param bool showVersionLink offer a link to the user which will remove the compatibility hint (and allow them to download the add-on)
*/
function addCompatibilityHints(addonID, versionID, fromVer, toVer, showVersionLink) {
+ // we are sugar, do not be so strong for anon users
+ showVersionLink = true;
+
var uapattern_olpc = /OLPC\/0\.([^-]*)-/;
var uamatch_olpc = uapattern_olpc.exec(navigator.userAgent);
if (uamatch_olpc) {