]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #5422 fixes tag processing for file plugin
authorCash Costello <cash.costello@gmail.com>
Sat, 11 May 2013 12:22:03 +0000 (08:22 -0400)
committerCash Costello <cash.costello@gmail.com>
Sat, 11 May 2013 12:22:03 +0000 (08:22 -0400)
mod/file/actions/file/upload.php

index d6dce2528315f1e941f60758cd9e01faaab715be..7ee402121f17a3e6626e7eebcf68c8690e3799c2 100644 (file)
@@ -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'])) {