diff --git a/webtools/addons/lib/addon.class.php b/webtools/addons/lib/addon.class.php index 86d573f1e9b..d56da5dbc2b 100644 --- a/webtools/addons/lib/addon.class.php +++ b/webtools/addons/lib/addon.class.php @@ -250,7 +250,6 @@ class AddOn extends AMO_Object // Gather addon categories. $this->db->query(" SELECT DISTINCT - categories.CatID, categories.CatName FROM categoryxref @@ -262,7 +261,7 @@ class AddOn extends AMO_Object categories.CatName ", SQL_ALL, SQL_ASSOC); - $this->AddonCats = $this->db->record; + $this->setVar('AddonCats',$this->db->record); } } ?> diff --git a/webtools/addons/tpl/addon.tpl b/webtools/addons/tpl/addon.tpl index fb22ee95b11..2b6e17f16c1 100644 --- a/webtools/addons/tpl/addon.tpl +++ b/webtools/addons/tpl/addon.tpl @@ -1,6 +1,6 @@
{$addon->Name} {$addon->Version}, @@ -48,8 +48,8 @@ Requires: {$addon->AppName} 1.0 - 1.0+ Cats[cats].CatName}" title="See other Addons in this category.">{$addon->Cats[cats].CatName} +{section name=cats loop=$addon->AddonCats} +