Dotclear


Ignore:
Timestamp:
05/12/11 19:42:11 (13 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
  • admin/categories.php

    r82 r252  
    130130'<option value="0">'.__('Top level').'</option>'; 
    131131while ($rs->fetch()) { 
    132      echo '<option value="'.$rs->cat_id.'">'.str_repeat('&nbsp;&nbsp;',$rs->level).'&bull; '.html::escapeHTML($rs->cat_title).'</option>'; 
     132     echo '<option value="'.$rs->cat_id.'">'. 
     133          str_repeat('&nbsp;&nbsp;',$rs->level-1).($categories->level-1 == 0 ? '' : '&bull; '). 
     134          html::escapeHTML($rs->cat_title).'</option>'; 
    133135} 
    134136echo 
Note: See TracChangeset for help on using the changeset viewer.

Sites map