Move Tag::explode call into add_image call so that $result is unaffected.
This commit is contained in:
parent
1625bd68e3
commit
d1306cfb2d
@ -1219,10 +1219,10 @@ function add_dir($base) {
|
||||
$short_path = str_replace($base, "", $full_path);
|
||||
$filename = basename($full_path);
|
||||
|
||||
$tags = Tag::explode(path_to_tags($short_path));
|
||||
$tags = path_to_tags($short_path);
|
||||
$result = "$short_path (".str_replace(" ", ", ", $tags).")... ";
|
||||
try {
|
||||
add_image($full_path, $filename, $tags);
|
||||
add_image($full_path, $filename, Tag::explode($tags));
|
||||
$result .= "ok";
|
||||
}
|
||||
catch(UploadException $ex) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user