aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/include/functions_upload.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/include/functions_upload.inc.php b/admin/include/functions_upload.inc.php
index 84c00a90e..fe7b888bb 100644
--- a/admin/include/functions_upload.inc.php
+++ b/admin/include/functions_upload.inc.php
@@ -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))