mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03:00
feature 2095 added: new column images.added_by (foreign key on users.id)
git-svn-id: http://piwigo.org/svn/trunk@8464 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
621ed0b391
commit
b4d2a1362f
8 changed files with 66 additions and 2 deletions
|
@ -184,7 +184,7 @@ function add_uploaded_file($source_filepath, $original_filename=null, $categorie
|
|||
// TODO
|
||||
// * check md5sum (already exists?)
|
||||
|
||||
global $conf;
|
||||
global $conf, $user;
|
||||
|
||||
// current date
|
||||
list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
|
||||
|
@ -306,6 +306,7 @@ function add_uploaded_file($source_filepath, $original_filename=null, $categorie
|
|||
'width' => $file_infos['width'],
|
||||
'height' => $file_infos['height'],
|
||||
'md5sum' => $md5sum,
|
||||
'added_by' => $user['id'],
|
||||
);
|
||||
|
||||
if (isset($high_infos))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue