This commit is contained in:
Shish 2022-09-27 17:38:15 +01:00
parent ad68e093c6
commit 22ec34ea52

View File

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