mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 13:16:32 +02:00
Fix redirect for photo remove tag page and only show the link if tags exist.
This commit is contained in:
parent
2475095da0
commit
58ac3fbb29
2 changed files with 4 additions and 4 deletions
|
@ -1022,7 +1022,7 @@ function photos_content()
|
|||
}
|
||||
}
|
||||
$tags = ['title' => DI::l10n()->t('Tags: '), 'tags' => $tag_arr];
|
||||
if ($cmd === 'edit') {
|
||||
if ($cmd === 'edit' && !empty($tag_arr)) {
|
||||
$tags['removeanyurl'] = 'post/' . $link_item['id'] . '/tag/remove?return=' . urlencode(DI::args()->getCommand());
|
||||
$tags['removetitle'] = DI::l10n()->t('[Select tags to remove]');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue