/[drupal]/contributions/modules/image_pub/image_pub.common.inc
ViewVC logotype

Diff of /contributions/modules/image_pub/image_pub.common.inc

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

revision 1.1.2.1, Sat Jan 31 02:00:25 2009 UTC revision 1.1.2.2, Sat Mar 28 22:53:37 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: image_pub.common.inc,v 1.16 2008/12/02 22:46:58 egfrith Exp $  // $Id: image_pub.common.inc,v 1.1.2.1 2009/01/31 02:00:25 egfrith Exp $
3    
4  /*  /*
5   * Generalized helper functions for tasks that require tight integration   * Generalized helper functions for tasks that require tight integration
# Line 163  function _image_pub_image_add($album, $c Line 163  function _image_pub_image_add($album, $c
163    }    }
164    
165    if (empty($caption)) {    if (empty($caption)) {
166      $caption = $_POST['force_filename'];      $caption = basename($_FILES[$srcfield]['name']);
167      if (empty($caption)) {      if (empty($caption)) {
168        $caption = basename($_FILES[$srcfield]['name']);        $caption = 'Untitled image';
       if (empty($caption)) {  
         $caption = 'Untitled image';  
       }  
169      }      }
170    }    }
171    

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

  ViewVC Help
Powered by ViewVC 1.1.2