summaryrefslogtreecommitdiff
path: root/www/functions/func_interface.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/functions/func_interface.php')
-rwxr-xr-xwww/functions/func_interface.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/www/functions/func_interface.php b/www/functions/func_interface.php
index 05f8f3b..e6aa3f1 100755
--- a/www/functions/func_interface.php
+++ b/www/functions/func_interface.php
@@ -1,14 +1,14 @@
<?php
-function collect_content($db){
- $owner = user($db, $_GET["name"]);
+function collect_content($db,$username, $folder_path){
+ $owner = user_id($db, $username);
if(!$owner){
failure("This user doesn't exist!");
}
- $file_id = select_file_id($db, $owner);
-
+ $file_id = select_file_id($db, $owner, $folder_path);
+
$content = get_content($db, $file_id, $owner);
if(!$content){