Ignore:
Timestamp:
May 16, 2006, 12:19:48 AM (19 years ago)
Author:
plg
Message:

bug 373 fixed: if there is no tag defined, an explicit message is displayed
in the administration section. In the public search screen, tag fieldset is
not displayed if no reachable tag.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/admin/element_set_global.php

    r1309 r1313  
    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  );
Note: See TracChangeset for help on using the changeset viewer.