Dotclear


Ignore:
Timestamp:
09/10/13 11:12:16 (12 years ago)
Author:
Dsls
Branch:
default
Message:

fixed categories combo "same name conflict". Hats off Franck for the clue! see #1564

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.admincombos.php

    r1722 r1774  
    3333          $categories_combo[__('(No cat)')] = ''; 
    3434          while ($categories->fetch()) { 
    35                $categories_combo[str_repeat('  ',$categories->level-1).($categories->level-1 == 0 ? '' : '• '). 
    36                     html::escapeHTML($categories->cat_title). 
    37                     ' ('.$categories->nb_post.')'] = $categories->cat_id; 
     35               $categories_combo[] = new formSelectOption ( 
     36                    str_repeat('  ',$categories->level-1).($categories->level-1 == 0 ? '' : '• '). 
     37                    html::escapeHTML($categories->cat_title).' ('.$categories->nb_post.')', 
     38                    $categories->cat_id 
     39               ); 
    3840          } 
    3941          return $categories_combo; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map