diff options
author | Tomeu Vizoso <tomeu@sugarlabs.org> | 2008-12-19 14:47:32 (GMT) |
---|---|---|
committer | David Farning <dfarning@gmail.com> | 2009-03-21 00:19:24 (GMT) |
commit | 4328ab2db7459f95c36974c3553727ea2d336780 (patch) | |
tree | 3b3b1f3a952cc58063dccfc8e4fd14776c5c1fbf /site | |
parent | 206168ce3ffdaedeaf482447f8fe742e9ff1e2bb (diff) |
Get Sugar categories to display in the navigation sidebar
Diffstat (limited to 'site')
-rw-r--r-- | site/app/controllers/components/amo.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/site/app/controllers/components/amo.php b/site/app/controllers/components/amo.php index 9f37941..a8b61b4 100644 --- a/site/app/controllers/components/amo.php +++ b/site/app/controllers/components/amo.php @@ -675,6 +675,9 @@ class AmoComponent extends Object { if (!empty($this->navCategories)) return $this->navCategories; + if(APP_ID == APP_SUGAR) { + $catlist = array(); + } else // addon type list to be added to regular categories list // @partial translation fallback, 4/23/08 if (_('nav_category_dicts_langpacks') != 'nav_category_dicts_langpacks') { @@ -738,7 +741,7 @@ class AmoComponent extends Object { } // add regular categories to list - $tags = $this->getTags(); + $tags = $this->getTags(APP_ID, ADDON_ACTIVITY); foreach ($tags as $_tag) { /* support hybrid categories */ if (isset($hybrid_categories[APP_ID][$_tag['Tag']['id']])) { |