Ignore:
Timestamp:
Feb 10, 2012, 3:44:20 PM (12 years ago)
Author:
mistic100
Message:

feature 2567: in IMAGES_TABLE the field "name" is prefilled with the filename

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_upload.inc.php

    r13030 r13082  
    297297  {
    298298    // database registration
     299    $file = pwg_db_real_escape_string(isset($original_filename) ? $original_filename : basename($file_path));
    299300    $insert = array(
    300       'file' => pwg_db_real_escape_string(isset($original_filename) ? $original_filename : basename($file_path)),
     301      'file' => $file,
     302      'name' => get_name_from_file($file),
    301303      'date_available' => $dbnow,
    302304      'path' => preg_replace('#^'.preg_quote(PHPWG_ROOT_PATH).'#', '', $file_path),
Note: See TracChangeset for help on using the changeset viewer.