diff options
author | Brion Vibber <brion@pobox.com> | 2010-09-21 22:00:25 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-09-21 22:00:25 -0700 |
commit | 7a381f2533c5f5da9702c6968655d52a76cb47dc (patch) | |
tree | b1465dd58ff249f42e2c07ed6f1bebe8e02fe7fd | |
parent | 0ed506ee9384f95bd01cdcd72a253d08ae89b92e (diff) |
Support non-image file uploads in Yammer import
-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']); } |