Changeset 13082


Ignore:
Timestamp:
02/10/12 15:44:20 (8 years ago)
Author:
mistic100
Message:

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

Location:
trunk
Files:
1 added
2 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), 
  • trunk/admin/site_update.php

    r12922 r13082  
    411411      'id'             => $next_element_id++, 
    412412      'file'           => $filename, 
     413      'name'           => get_name_from_file($filename), 
    413414      'date_available' => CURRENT_DATE, 
    414415      'path'           => $path, 
Note: See TracChangeset for help on using the changeset viewer.