Replace update/delete with Term::insertFramTagFieldByItemId + Code Standards + Wording
This commit is contained in:
parent
e022bac339
commit
b03050c339
2 changed files with 6 additions and 12 deletions
|
@ -1419,12 +1419,13 @@ function photos_content(App $a)
|
|||
// parse tags and add links
|
||||
$tag_arr = [];
|
||||
foreach ($arr as $tag) {
|
||||
array_push($tag_arr, ['name' => BBCode::convert($tag), 'removeurl' => '/tagrm/'.$link_item['id'] . '/' . bin2hex($tag)]);
|
||||
array_push($tag_arr, ['name' => BBCode::convert($tag),
|
||||
'removeurl' => '/tagrm/'.$link_item['id'] . '/' . bin2hex($tag)]);
|
||||
}
|
||||
$tags = ['title' => L10n::t('Tags: '), 'tags' => $tag_arr];
|
||||
if ($cmd === 'edit') {
|
||||
$tags += ['removeanyurl' => 'tagrm/' . $link_item['id']];
|
||||
$tags += ['removetitle' => L10n::t('[Remove any tag]')];
|
||||
$tags += ['removetitle' => L10n::t('[Select tags to remove]')];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue