bulk_add_csv: Run Tag::explode() on the tags before passing them to handlers
Fixes #575
This commit is contained in:
parent
dc3508560a
commit
f934baa207
@ -126,7 +126,7 @@ class BulkAddCSV extends Extension {
|
|||||||
$list .= "<br>".html_escape("$shortpath (".str_replace(" ", ", ", $tags).")... ");
|
$list .= "<br>".html_escape("$shortpath (".str_replace(" ", ", ", $tags).")... ");
|
||||||
if (file_exists($csvdata[0]) && is_file($csvdata[0])) {
|
if (file_exists($csvdata[0]) && is_file($csvdata[0])) {
|
||||||
try{
|
try{
|
||||||
$this->add_image($fullpath, $pathinfo["basename"], $tags, $source, $rating, $thumbfile);
|
$this->add_image($fullpath, $pathinfo["basename"], Tag::explode($tags), $source, $rating, $thumbfile);
|
||||||
$list .= "ok\n";
|
$list .= "ok\n";
|
||||||
}
|
}
|
||||||
catch(Exception $ex) {
|
catch(Exception $ex) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user