/[drupal]/contributions/modules/attachment/attachment.module
ViewVC logotype

Diff of /contributions/modules/attachment/attachment.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.15.2.2, Thu Sep 28 09:53:13 2006 UTC revision 1.15.2.3, Fri Nov 30 23:54:55 2007 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: attachment.module,v 1.15.2.1 2006/09/27 17:49:41 robertDouglass Exp $  // $Id: attachment.module,v 1.15.2.2 2006/09/28 09:53:13 robertDouglass Exp $
3    
4  define(ATTACHMENT_EXTENSION_WHITELIST, variable_get('attachment_text_rename_whitelist', 'jpg jpeg gif png tiff txt html doc xls pdf ppt pps odt mp3 ogg wav wmv mpg'));  define(ATTACHMENT_EXTENSION_WHITELIST, variable_get('attachment_text_rename_whitelist', 'jpg jpeg gif png tiff txt html doc xls pdf ppt pps odt mp3 ogg wav wmv mpg'));
5    
# Line 305  function attachment_add(&$node) { Line 305  function attachment_add(&$node) {
305    // existing attachment from the array.    // existing attachment from the array.
306    foreach ((array)$node->attachments as $key => $attachment) {    foreach ((array)$node->attachments as $key => $attachment) {
307      if ($attachment['filename'] == $new_attachment['filename']) {      if ($attachment['filename'] == $new_attachment['filename']) {
308          $new_attachment['aid'] = $attachment['aid'];
309        $new_attachment['fid'] = $attachment['fid'];        $new_attachment['fid'] = $attachment['fid'];
310        $remove_key = $key;        $remove_key = $key;
311      }      }

Legend:
Removed from v.1.15.2.2  
changed lines
  Added in v.1.15.2.3

  ViewVC Help
Powered by ViewVC 1.1.2