diff options
author | Brion Vibber <brion@pobox.com> | 2010-09-21 22:00:25 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-09-28 07:44:22 -0700 |
commit | 6bc3f5aacbdefcd2bb2d46998bc439903ffa3a1d (patch) | |
tree | 839f0df9811e464021f09f4a13a349ef291cb5f5 /plugins/YammerImport/yammerimporter.php | |
parent | b3210ee64c84c9e8224b0c1e40217bf920a9a0a1 (diff) |
Support non-image file uploads in Yammer import
Diffstat (limited to 'plugins/YammerImport/yammerimporter.php')
-rw-r--r-- | plugins/YammerImport/yammerimporter.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/YammerImport/yammerimporter.php b/plugins/YammerImport/yammerimporter.php index 6dc72f476..bfe486770 100644 --- a/plugins/YammerImport/yammerimporter.php +++ b/plugins/YammerImport/yammerimporter.php @@ -306,8 +306,8 @@ class YammerImporter $attachments = array(); foreach ($item['attachments'] as $attach) { - if ($attach['type'] == 'image') { - $attachments[] = $attach['image']['url']; + if ($attach['type'] == 'image' || $attach['type'] == 'file') { + $attachments[] = $attach[$attach['type']]['url']; } else { common_log(LOG_WARNING, "Unrecognized Yammer attachment type: " . $attach['type']); } |