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>2009-01-23 17:32:24 (GMT)
committer morgamic@mozilla.com <morgamic@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2009-01-23 17:32:24 (GMT)
commite3d7fb2ff522c165c665c53b12ca3000f3a9649b (patch)
tree6930eb779f5248fbea8b025fa13f8ab187cc80d7 /site/app/app_controller.php
parentf40e51edd6d3811e46dd1a544359c20105174cdb (diff)
Removing tag queries from views. Bug 453921, r=wenzel.
git-svn-id: http://svn.mozilla.org/addons/trunk@21696 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/app_controller.php')
-rw-r--r--site/app/app_controller.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/site/app/app_controller.php b/site/app/app_controller.php
index d0e4c40..e953cef 100644
--- a/site/app/app_controller.php
+++ b/site/app/app_controller.php
@@ -40,7 +40,7 @@
class AppController extends Controller
{
var $components = array('Amo','SimpleAuth','SimpleAcl');
- var $uses = array('Config', 'User', 'Group');
+ var $uses = array('Config', 'User', 'Group', 'Addontype', 'Platform');
var $view = 'Addons';
// allow named arguments, default on
@@ -318,6 +318,11 @@ class AppController extends Controller
* circumventing the publish() function.
*/
function beforeRender() {
+ $this->set('AmoTags', $this->Amo->getNavCategories());
+ $this->set('AmoVersions', $this->Amo->getApplicationVersions());
+ $this->set('AmoPlatforms', $this->Platform->getNames());
+ $this->set('AmoAddonTypes', $this->Addontype->getNames());
+
if (isset($this->data))
$this->_sanitizeArray($this->data, false);