mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 09:43:01 +02:00
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
This commit is contained in:
@@ -225,6 +225,22 @@ SELECT tag_id
|
||||
{
|
||||
list($year,$month,$day) = array('','','');
|
||||
}
|
||||
|
||||
if (count($all_tags) > 0)
|
||||
{
|
||||
$tag_selection = get_html_tag_selection(
|
||||
$all_tags,
|
||||
'tags-'.$row['id'],
|
||||
$selected_tags
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
$tag_selection =
|
||||
'<p>'.
|
||||
l10n('No tag defined. Use Administration>Pictures>Tags').
|
||||
'</p>';
|
||||
}
|
||||
|
||||
$template->assign_block_vars(
|
||||
'element',
|
||||
@@ -243,11 +259,7 @@ SELECT tag_id
|
||||
'DESCRIPTION' => @$row['comment'],
|
||||
'DATE_CREATION_YEAR' => $year,
|
||||
|
||||
'TAG_SELECTION' => get_html_tag_selection(
|
||||
$all_tags,
|
||||
'tags-'.$row['id'],
|
||||
$selected_tags
|
||||
),
|
||||
'TAG_SELECTION' => $tag_selection,
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user