diff options
author | Tomeu Vizoso <tomeu@sugarlabs.org> | 2008-12-19 14:47:32 (GMT) |
---|---|---|
committer | YOUR NAME <USER@develer.com> | 2009-02-11 18:50:48 (GMT) |
commit | 890519709daeb517e3499db3cbd61973bcb6e38b (patch) | |
tree | 50188a7fa12575895627f33aaf3e00055d3e59aa | |
parent | c8bdc15d17e5589cceedc693ba305611dd2069bc (diff) |
Get Sugar categories to display in the navigation sidebar
-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 850db9b..71cca55 100644 --- a/site/app/controllers/components/amo.php +++ b/site/app/controllers/components/amo.php @@ -708,6 +708,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') { @@ -772,7 +775,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']])) { |