Dotclear

Changeset 1610:2d5ebb2fcdfd for inc/core


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
  • inc/core/class.dc.blog.php

    r1532 r1610  
    311311          $counter = $this->getCategoriesCounter($c_params); 
    312312           
    313           $without_empty = $this->core->auth->userID() == false; # For public display 
     313          if (isset($params['without_empty']) && ($params['without_empty'] == false)) { 
     314               $without_empty = false; 
     315          } else { 
     316               $without_empty = $this->core->auth->userID() == false; # Get all categories if in admin display 
     317          } 
    314318           
    315319          $start = isset($params['start']) ? (integer) $params['start'] : 0; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map