forked from Cavemanon/cavepaintings
only one of tags/image-specific-tags needs filling
This commit is contained in:
@@ -215,7 +215,9 @@ class Upload extends Extension {
|
|||||||
|
|
||||||
private function tags_for_upload_slot($id) {
|
private function tags_for_upload_slot($id) {
|
||||||
if(isset($_POST["tags$id"])) {
|
if(isset($_POST["tags$id"])) {
|
||||||
$tags = array_merge(Tag::explode($_POST['tags']), Tag::explode($_POST["tags$id"]));
|
# merge then explode, not explode then merge - else
|
||||||
|
# one of the merges may create a surplus "tagme"
|
||||||
|
$tags = Tag::explode($_POST['tags'] . " " . $_POST["tags$id"]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$tags = Tag::explode($_POST['tags']);
|
$tags = Tag::explode($_POST['tags']);
|
||||||
|
Reference in New Issue
Block a user