Merge pull request #888 from yls4/master

Fixing bulk add bug, tag is set to "\" if no other tags are present
This commit is contained in:
Shish 2022-09-27 17:37:44 +01:00 committed by GitHub
commit ad68e093c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,8 @@ function add_dir(string $base): array
$filename = basename($full_path);
$tags = path_to_tags($short_path);
if ($tags[0] == "\\")
$tags = "";
$result = "$short_path (".str_replace(" ", ", ", $tags).")... ";
try {
add_image($full_path, $filename, $tags);