mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
feature 479: when more than 3 tags selected, be able to remove one tag
from the multiple tags git-svn-id: http://piwigo.org/svn/trunk@1606 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -193,7 +193,7 @@ SELECT name, url_name, id
|
||||
}
|
||||
$result = pwg_query($query);
|
||||
$tag_infos = array();
|
||||
while ($row = mysql_fetch_array($result))
|
||||
while ($row = mysql_fetch_assoc($result))
|
||||
{
|
||||
$tag_infos[ $row['id'] ] = $row;
|
||||
array_push($page['tags'], $row );//we loose given tag order; is it important?
|
||||
@@ -410,29 +410,7 @@ SELECT image_id
|
||||
);
|
||||
}
|
||||
|
||||
$title = count($page['tags']) > 1 ? l10n('Tags') : l10n('Tag');
|
||||
$title.= ' ';
|
||||
|
||||
$tag_num = 1;
|
||||
foreach ($page['tag_ids'] as $tag_id)
|
||||
{
|
||||
$title.=
|
||||
($tag_num++ > 1 ? ' + ' : '')
|
||||
.'<a href="'
|
||||
.make_index_url(
|
||||
array(
|
||||
'tags' => array(
|
||||
array(
|
||||
'id' => $tag_id,
|
||||
'url_name' => $tag_infos[$tag_id]['url_name'],
|
||||
),
|
||||
)
|
||||
)
|
||||
)
|
||||
.'">'
|
||||
.$tag_infos[$tag_id]['name']
|
||||
.'</a>';
|
||||
}
|
||||
$title = get_tags_content_title();
|
||||
|
||||
$page = array_merge(
|
||||
$page,
|
||||
|
||||
Reference in New Issue
Block a user