Changeset 1314 for trunk/admin


Ignore:
Timestamp:
May 16, 2006, 12:21:08 AM (18 years ago)
Author:
plg
Message:

merge -r1312:1313 from branch 1.6 to trunk (bug 373 fixed)

Location:
trunk/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/element_set_global.php

    r1310 r1314  
    278278}
    279279
     280$all_tags = get_all_tags();
     281
     282if (count($all_tags) == 0)
     283{
     284  $add_tag_selection =
     285    '<p>'.
     286    l10n('No tag defined. Use Administration>Pictures>Tags').
     287    '</p>';
     288}
     289else
     290{
     291  $add_tag_selection = get_html_tag_selection(
     292    get_all_tags(),
     293    'add_tags'
     294    );
     295}
     296
    280297// add tags
    281298$template->assign_vars(
    282299  array(
    283     'ADD_TAG_SELECTION' => get_html_tag_selection(get_all_tags(), 'add_tags'),
     300    'ADD_TAG_SELECTION' => $add_tag_selection,
    284301    )
    285302  );
  • trunk/admin/element_set_unit.php

    r1119 r1314  
    225225    {
    226226      list($year,$month,$day) = array('','','');
     227    }
     228
     229    if (count($all_tags) > 0)
     230    {
     231      $tag_selection = get_html_tag_selection(
     232        $all_tags,
     233        'tags-'.$row['id'],
     234        $selected_tags
     235        );
     236    }
     237    else
     238    {
     239      $tag_selection =
     240        '<p>'.
     241        l10n('No tag defined. Use Administration>Pictures>Tags').
     242        '</p>';
    227243    }
    228244   
     
    244260        'DATE_CREATION_YEAR' => $year,
    245261       
    246         'TAG_SELECTION' => get_html_tag_selection(
    247           $all_tags,
    248           'tags-'.$row['id'],
    249           $selected_tags
    250           ),
     262        'TAG_SELECTION' => $tag_selection,
    251263        )
    252264      );
  • trunk/admin/picture_modify.php

    r1121 r1314  
    199199  );
    200200
     201$all_tags = get_all_tags();
     202
     203if (count($all_tags) > 0)
     204{
     205  $tag_selection = get_html_tag_selection(
     206    get_all_tags(),
     207    'tags',
     208    $selected_tags
     209    );
     210}
     211else
     212{
     213  $tag_selection =
     214    '<p>'.
     215    l10n('No tag defined. Use Administration>Pictures>Tags').
     216    '</p>';
     217}
     218 
    201219$template->assign_vars(
    202220  array(
     
    226244    'CREATION_DATE' => $date,
    227245
    228     'TAG_SELECTION' => get_html_tag_selection(
    229       get_all_tags(),
    230       'tags',
    231       $selected_tags
    232       ),
     246    'TAG_SELECTION' => $tag_selection,
    233247
    234248    'DESCRIPTION' =>
Note: See TracChangeset for help on using the changeset viewer.