File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6363if ( $ tag_groups == 1 and isset ($ _POST ['osm_tag_submit ' ]) )
6464{
6565 // Override default value from the form
66+ $ tmp = preg_split ("/_/ " ,$ _POST ['language ' ]);
6667 $ sync_options = array (
6768 'overwrite ' => isset ($ _POST ['overwrite ' ]),
6869 'simulate ' => isset ($ _POST ['simulate ' ]),
7778 'osm_tag_address_country ' => isset ($ _POST ['osm_tag_address_country ' ]),
7879 'osm_tag_address_postcode ' => isset ($ _POST ['osm_tag_address_postcode ' ]),
7980 'osm_tag_address_country_code ' => isset ($ _POST ['osm_tag_address_country_code ' ]),
80- 'language ' => preg_split ( " /_/ " , $ _POST [ ' language ' ])[ 0 ]
81+ 'language ' => $ tmp [ 0 ],
8182 );
8283
8384 // TODO allow to filter on overwrite
211212 //print_r($tag_ids);
212213 if (!empty ($ tag_ids ))
213214 {
214- add_tags ($ tag_ids , [ $ image ['id ' ]] );
215+ add_tags ($ tag_ids , array ( $ image ['id ' ]) );
215216 }
216217 }
217218 $ datas [] = $ image ['id ' ];
You can’t perform that action at this time.
0 commit comments