summaryrefslogtreecommitdiffstats
path: root/application/models/mfile.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-08-21 15:15:47 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-08-21 15:40:56 +0200
commitce54c1b9c23f4bdb7b2525b8aab66a6ba11bda0d (patch)
tree28216b78b6fa231f442db42b8a390c77fcbb233a /application/models/mfile.php
parent342e2b1cd341599b734ec581a6c47019b09ac97b (diff)
mfile->add_file: Take userid via argument
This allows for easier testing. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models/mfile.php')
-rw-r--r--application/models/mfile.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/application/models/mfile.php b/application/models/mfile.php
index 10f4f542e..6b7b38d41 100644
--- a/application/models/mfile.php
+++ b/application/models/mfile.php
@@ -103,10 +103,8 @@ class Mfile extends CI_Model {
}
// Add a file to the DB
- function add_file($id, $filename, $storage_id)
+ function add_file($userid, $id, $filename, $storage_id)
{
- $userid = $this->muser->get_userid();
-
$this->db->insert("files", array(
"id" => $id,
"filename" => $filename,