Permalink
Browse files

Changed the data returned by the Files library when uploading

  • Loading branch information...
1 parent fb9aede commit c9765dc1303934306a2e1ba1bb50a9c81bfe57cb @jerel jerel committed Apr 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 system/cms/modules/files/libraries/Files.php
@@ -395,7 +395,7 @@ public static function upload($folder_id, $name = FALSE, $field = 'userfile', $w
return Files::move($file_id, $data['filename'], 'local', $folder->location, $folder->remote_container);
}
- return self::result(TRUE, lang('files:file_uploaded'), $name);
+ return self::result(TRUE, lang('files:file_uploaded'), $data['name'], $data);
}
else
{

0 comments on commit c9765dc

Please sign in to comment.