mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 03:39:57 +03:00
feature 2567: in IMAGES_TABLE the field "name" is prefilled with the filename
git-svn-id: http://piwigo.org/svn/trunk@13082 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
1a56352d08
commit
a25fe0c7e8
3 changed files with 69 additions and 1 deletions
|
@ -296,8 +296,10 @@ SELECT
|
|||
else
|
||||
{
|
||||
// database registration
|
||||
$file = pwg_db_real_escape_string(isset($original_filename) ? $original_filename : basename($file_path));
|
||||
$insert = array(
|
||||
'file' => pwg_db_real_escape_string(isset($original_filename) ? $original_filename : basename($file_path)),
|
||||
'file' => $file,
|
||||
'name' => get_name_from_file($file),
|
||||
'date_available' => $dbnow,
|
||||
'path' => preg_replace('#^'.preg_quote(PHPWG_ROOT_PATH).'#', '', $file_path),
|
||||
'filesize' => $file_infos['filesize'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue