Dotclear


Ignore:
Timestamp:
08/29/13 09:38:58 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Fixes #472, <tpl:Categories> (new without_empty="0" attribute) and categories' widget ("Include empty categories" checkbox) may includes empty categories.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/widgets/_widgets_functions.php

    r1280 r1610  
    7777          } 
    7878 
    79           $rs = $core->blog->getCategories(array('post_type'=>'post')); 
     79          $rs = $core->blog->getCategories(array('post_type'=>'post','without_empty'=> !$w->with_empty)); 
    8080          if ($rs->isEmpty()) { 
    8181               return; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map