Ignore:
Timestamp:
Jan 28, 2010, 10:01:16 PM (14 years ago)
Author:
plg
Message:

bug 1404 fixed: the original filename is not used directly as photo title
anymore. Instead we fill the images.file with the original filename and
then Piwigo displays a default title based on images.file content, but without
"_" or ".jpg" extension.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/upload_form/upload.php

    r4740 r4783  
    5151    {
    5252      $source_filepath = $_FILES['image_upload']['tmp_name'][$idx];
    53       $name = $_FILES['image_upload']['name'][$idx];
    54       add_uploaded_file($source_filepath, $name, array($_POST['category']));
     53      $original_filename = $_FILES['image_upload']['name'][$idx];
     54      add_uploaded_file($source_filepath, $original_filename, array($_POST['category']));
    5555    }
    5656  }
Note: See TracChangeset for help on using the changeset viewer.