Changeset 1181 in ExiteCMS


Ignore:
Timestamp:
12/23/07 21:35:45 (4 years ago)
Author:
hverton
Message:

fixed logic error when displaying number of unread posts and threads

Location:
modules/common/forum_threads_list_panel/php-files/modules/forum_threads_list_panel/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/common/forum_threads_list_panel/php-files/modules/forum_threads_list_panel/templates/modules.forum_threads_list_panel.new_posts.tpl

    r844 r1181  
    5858        <td align='center' colspan='5' class='{cycle values='tbl1,tbl2'}'> 
    5959            {if $rows == 1} 
    60             <b>{$locale.039a}</b> 
     60                {if $unread == 1} 
     61                    <b>{$locale.039a}</b> 
     62                {else} 
     63                    <b>{ssprintf format=$locale.039b var1=$unread}</b> 
     64                {/if} 
    6165            {else} 
    6266            <b>{ssprintf format=$locale.039 var1=$unread var2=$rows}</b> 
  • modules/common/forum_threads_list_panel/php-files/modules/forum_threads_list_panel/templates/modules.forum_threads_list_panel.new_posts_detail.tpl

    r839 r1181  
    5252        <td align='center' colspan='4' class='{cycle values='tbl1,tbl2'}'> 
    5353            {if $rows == 1} 
    54             <b>{$locale.039a}</b> 
     54                {if $unread == 1} 
     55                    <b>{$locale.039a}</b> 
     56                {else} 
     57                    <b>{ssprintf format=$locale.039b var1=$unread}</b> 
     58                {/if} 
    5559            {else} 
    56             <b>{ssprintf format=$locale.039 var1=$rows var2=$threads}</b> 
     60            <b>{ssprintf format=$locale.039 var1=$unread var2=$rows}</b> 
    5761            {/if} 
    5862            <br /><br /> 
Note: See TracChangeset for help on using the changeset viewer.