Hides not existing user group option category descriptions
authorMatthias Schmidt <gravatronics@live.com>
Thu, 1 Mar 2012 17:34:22 +0000 (18:34 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 1 Mar 2012 17:34:22 +0000 (18:34 +0100)
wcfsetup/install/files/acp/templates/userGroupAdd.tpl

index 3279522b9ff79e41d542fe3c80e161e01c4a477d..9351fa30e9254947dd291c340dac0afac61b1ca3 100644 (file)
@@ -92,7 +92,7 @@
                                                <div id="{@$categoryLevel1[object]->categoryName}-{@$categoryLevel2[object]->categoryName}" class="hidden">
                                                        <hgroup class="wcf-subHeading">
                                                                <h1>{lang}wcf.acp.group.option.category.{@$categoryLevel2[object]->categoryName}{/lang}</h1>
-                                                               <h2>{lang}wcf.acp.group.option.category.{@$categoryLevel2[object]->categoryName}.description{/lang}</h2>
+                                                               {hascontent}<h2>{content}{lang __optional=true}wcf.acp.group.option.category.{@$categoryLevel2[object]->categoryName}.description{/lang}{/content}</h2>{/hascontent}
                                                        </hgroup>
                                                        
                                                        {if $categoryLevel2[options]|count}
                                                                {foreach from=$categoryLevel2[categories] item=categoryLevel3}
                                                                        <fieldset>
                                                                                <legend>{lang}wcf.acp.group.option.category.{@$categoryLevel3[object]->categoryName}{/lang}</legend>
-                                                                               {hascontent}<small>{content}{lang}wcf.acp.group.option.category.{@$categoryLevel3[object]->categoryName}.description{/lang}{/content}</small>{/hascontent}
+                                                                               {hascontent}<small>{content}{lang __optional=true}wcf.acp.group.option.category.{@$categoryLevel3[object]->categoryName}.description{/lang}{/content}</small>{/hascontent}
                                                                
                                                                                <div>
                                                                                        {include file='optionFieldList' options=$categoryLevel3[options] langPrefix='wcf.acp.group.option.'}