From 75e36be1f26fe1c62fd2a8be62071b488f5bd898 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 15 Dec 2008 15:17:56 -0800 Subject: [PATCH] bulk upload presentation tweak --- contrib/bulk_add/main.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/bulk_add/main.php b/contrib/bulk_add/main.php index 65e420f3..3be92067 100644 --- a/contrib/bulk_add/main.php +++ b/contrib/bulk_add/main.php @@ -70,13 +70,14 @@ class BulkAdd extends Extension { $tags = $subdir; $tags = str_replace("/", " ", $tags); $tags = str_replace("__", " ", $tags); - $list .= "
".html_escape("$subdir/$filename (".str_replace(" ", ",", $tags).")..."); + $tags = trim($tags); + $list .= "
".html_escape("$subdir/$filename (".str_replace(" ", ", ", $tags).")... "); $error = $this->add_image($tmpfile, $filename, $tags); if(is_null($error)) { $list .= "ok\n"; } else { - $list .= "failed: $error\n"; + $list .= "failed:
$error\n"; } } }