Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/app_controller.php
diff options
context:
space:
mode:
authormorgamic@mozilla.com <morgamic@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-02-28 09:53:05 (GMT)
committer morgamic@mozilla.com <morgamic@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-02-28 09:53:05 (GMT)
commit52db5ffd46445cfbb9cfd7bc327e6db3cdbd0495 (patch)
treeb1066e73259a81d77ec4ff5e265ce0f42f0da79b /site/app/app_controller.php
parent2743795680f8f66971f89df0fbb174567bf7f3c8 (diff)
Added logic to only show versions that have valid files in search/browse results. Centralized some of the manual binding done for list result sets. Fixed some CSS bugs and attempted to improve the browse look/feel.
git-svn-id: http://svn.mozilla.org/addons/trunk@2359 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/app_controller.php')
-rw-r--r--site/app/app_controller.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/site/app/app_controller.php b/site/app/app_controller.php
index 76f4ec1..39cc30f 100644
--- a/site/app/app_controller.php
+++ b/site/app/app_controller.php
@@ -58,7 +58,7 @@ class AppController extends Controller
*/
function _checkSandbox() {
- $this->status = STATUS_PUBLIC;
+ $this->status = array(STATUS_PUBLIC);
$this->sandboxAccess = false;
if ($this->Session->check('User')) {
@@ -75,7 +75,7 @@ class AppController extends Controller
return;
}
if ($this->sandboxAccess)
- $this->status = STATUS_SANDBOX;
+ $this->status = array(STATUS_SANDBOX, STATUS_PENDING, STATUS_NOMINATED);
}
$this->set('addonStatus', $this->status);
$this->set('sandboxAccess', $this->sandboxAccess);