Dotclear


Ignore:
Timestamp:
10/02/13 09:43:49 (12 years ago)
Author:
Dsls
Branch:
default
Message:

includesubcats suddenly swallowed by core

Location:
plugins/widgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/widgets/_default_widgets.php

    r1610 r2198  
    5050$__widgets->categories->setting('title',__('Title:'),__('Categories')); 
    5151$__widgets->categories->setting('postcount',__('With entries counts'),0,'check'); 
     52$__widgets->categories->setting('subcatscount', __('Include sub cats in count'), false, 'check'); 
    5253$__widgets->categories->setting('with_empty',__('Include empty categories'),0,'check'); 
    5354$__widgets->categories->setting('homeonly',__('Display on:'),0,'combo', 
  • plugins/widgets/_widgets_functions.php

    r1610 r2198  
    108108               '<a href="'.$core->blog->url.$core->url->getURLFor('category', $rs->cat_url).'">'. 
    109109               html::escapeHTML($rs->cat_title).'</a>'. 
    110                ($w->postcount ? ' <span>('.$rs->nb_post.')</span>' : ''); 
     110               ($w->postcount ? ' <span>('.($w->subcatscount ? $rs->nb_total : $rs->nb_post).')</span>' : ''); 
    111111                
    112112                
Note: See TracChangeset for help on using the changeset viewer.

Sites map