format
This commit is contained in:
parent
ad68e093c6
commit
22ec34ea52
1 changed files with 3 additions and 2 deletions
|
@ -20,8 +20,9 @@ function add_dir(string $base): array
|
||||||
$filename = basename($full_path);
|
$filename = basename($full_path);
|
||||||
|
|
||||||
$tags = path_to_tags($short_path);
|
$tags = path_to_tags($short_path);
|
||||||
if ($tags[0] == "\\")
|
if ($tags[0] == "\\") {
|
||||||
$tags = "";
|
$tags = "";
|
||||||
|
}
|
||||||
$result = "$short_path (".str_replace(" ", ", ", $tags).")... ";
|
$result = "$short_path (".str_replace(" ", ", ", $tags).")... ";
|
||||||
try {
|
try {
|
||||||
add_image($full_path, $filename, $tags);
|
add_image($full_path, $filename, $tags);
|
||||||
|
|
Reference in a new issue