From 875a6b15c89f168e15faf74af9efe180e1bb909e Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 15 May 2006 22:21:08 +0000 Subject: merge -r1312:1313 from branch 1.6 to trunk (bug 373 fixed) git-svn-id: http://piwigo.org/svn/trunk@1314 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/element_set_global.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'admin/element_set_global.php') diff --git a/admin/element_set_global.php b/admin/element_set_global.php index 5dbe4a18b..c6a522106 100644 --- a/admin/element_set_global.php +++ b/admin/element_set_global.php @@ -277,10 +277,27 @@ SELECT DISTINCT(category_id) AS id, c.name, uppercats, global_rank display_select_cat_wrapper($query, array(), $blockname, true); } +$all_tags = get_all_tags(); + +if (count($all_tags) == 0) +{ + $add_tag_selection = + '

'. + l10n('No tag defined. Use Administration>Pictures>Tags'). + '

'; +} +else +{ + $add_tag_selection = get_html_tag_selection( + get_all_tags(), + 'add_tags' + ); +} + // add tags $template->assign_vars( array( - 'ADD_TAG_SELECTION' => get_html_tag_selection(get_all_tags(), 'add_tags'), + 'ADD_TAG_SELECTION' => $add_tag_selection, ) ); -- cgit v1.2.3