aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2013-05-11 08:22:03 -0400
committerCash Costello <cash.costello@gmail.com>2013-05-11 08:22:03 -0400
commit4ebc7100f68bfe1f9beefa7fd1d3c937754def92 (patch)
treed657cb64420e9bb5008d606b2b8aa748797ea511
parent835626750756b6af38c0d9435c8477f23d494cda (diff)
downloadelgg-4ebc7100f68bfe1f9beefa7fd1d3c937754def92.tar.gz
elgg-4ebc7100f68bfe1f9beefa7fd1d3c937754def92.tar.bz2
Fixes #5422 fixes tag processing for file plugin
-rw-r--r--mod/file/actions/file/upload.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/mod/file/actions/file/upload.php b/mod/file/actions/file/upload.php
index d6dce2528..7ee402121 100644
--- a/mod/file/actions/file/upload.php
+++ b/mod/file/actions/file/upload.php
@@ -71,9 +71,7 @@ $file->title = $title;
$file->description = $desc;
$file->access_id = $access_id;
$file->container_guid = $container_guid;
-
-$tags = explode(",", $tags);
-$file->tags = $tags;
+$file->tags = string_to_tag_array($tags);
// we have a file upload, so process it
if (isset($_FILES['upload']['name']) && !empty($_FILES['upload']['name'])) {