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} » Overview

- +

{$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} +

  • {$addon->AddonCats[cats].CatName}
  • {/section} diff --git a/webtools/addons/tpl/author.tpl b/webtools/addons/tpl/author.tpl index 593ef251733..04531ff7873 100644 --- a/webtools/addons/tpl/author.tpl +++ b/webtools/addons/tpl/author.tpl @@ -5,7 +5,7 @@
    Email
    -{if $user->UserEmailHide} +{if $user->UserEmailHide eq 1} Email not disclosed {else} {$user->UserEmail|escape} diff --git a/webtools/addons/tpl/inc/header.tpl b/webtools/addons/tpl/inc/header.tpl index 9cc37e65de2..eda4b73edb9 100644 --- a/webtools/addons/tpl/inc/header.tpl +++ b/webtools/addons/tpl/inc/header.tpl @@ -37,7 +37,7 @@