From ed97119bc3a7203b11d92cf170869a12bd2da953 Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 12 Oct 2008 12:25:52 +0000 Subject: Oups, missed the creation of new files. --- forum/utils/files.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'forum/utils') diff --git a/forum/utils/files.php b/forum/utils/files.php index 2190f42..b9758ae 100644 --- a/forum/utils/files.php +++ b/forum/utils/files.php @@ -88,13 +88,13 @@ class Files { public function newFile($tempfile, $name) { - global $PERMSTORE; + global $PERMSTORE, $current_user; $fid = time(); // move tempfile to permstore and put it in db. move_uploaded_file($tempfile, $PERMSTORE . "/" . $fid); - $f = new File($fid, $name, getMimeType($name)->name); + $f = new File($fid, $current_user->uid, $name, getMimeType($name)->name); $this->add($f); // We cannot wait to write the db, otherwise we'll get inconsistency! -- cgit v1.2.3