Dotclear


Ignore:
Timestamp:
05/12/11 19:42:11 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
default
Message:

Suppression des puces surnuméraires dans les listes de catégories (le premier niveau de catégorie n'a plus de puce en préfixe)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/widgets/_default_widgets.php

    r0 r252  
    5858$categories = array('' => '', __('Uncategorized') => 'null'); 
    5959while ($rs->fetch()) { 
    60      $categories[str_repeat('&nbsp;&nbsp;',$rs->level-1).'&bull; '.html::escapeHTML($rs->cat_title)] = $rs->cat_id; 
     60     $categories[str_repeat('&nbsp;&nbsp;',$rs->level-1).($rs->level-1 == 0 ? '' : '&bull; ').html::escapeHTML($rs->cat_title)] = $rs->cat_id; 
    6161} 
    6262$__widgets->lastposts->setting('category',__('Category:'),'','combo',$categories); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map