diff options
author | plegall <plg@piwigo.org> | 2006-05-15 22:19:48 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2006-05-15 22:19:48 +0000 |
commit | 357f1d842d7a5f937fe0d0479566401bb6e360de (patch) | |
tree | 23afd091f441221313327938d496b67ab65e15a9 /admin/picture_modify.php | |
parent | 49682c913aec3855e576841dbfe18cba5ee2acfc (diff) |
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.
git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1313 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/picture_modify.php | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/admin/picture_modify.php b/admin/picture_modify.php index ac7310ddd..54bb45d69 100644 --- a/admin/picture_modify.php +++ b/admin/picture_modify.php @@ -198,6 +198,24 @@ $template->set_filenames( ) ); +$all_tags = get_all_tags(); + +if (count($all_tags) > 0) +{ + $tag_selection = get_html_tag_selection( + get_all_tags(), + 'tags', + $selected_tags + ); +} +else +{ + $tag_selection = + '<p>'. + l10n('No tag defined. Use Administration>Pictures>Tags'). + '</p>'; +} + $template->assign_vars( array( 'U_SYNC' => @@ -225,11 +243,7 @@ $template->assign_vars( 'CREATION_DATE' => $date, - 'TAG_SELECTION' => get_html_tag_selection( - get_all_tags(), - 'tags', - $selected_tags - ), + 'TAG_SELECTION' => $tag_selection, 'DESCRIPTION' => isset($_POST['description']) ? |