summaryrefslogtreecommitdiff
path: root/www/functions/func_folder.php
diff options
context:
space:
mode:
authormoehm2014-03-27 19:21:18 +0100
committermoehm2014-03-27 19:21:18 +0100
commited5dabd4df988f63d300fa4ed6cc388990b0fdfb (patch)
tree950e9187234391550c784604a8cb659105000313 /www/functions/func_folder.php
parent2310c2e3cb4cf9b724ef065fcb8543a60d0ff280 (diff)
parenta35197cefeb2dae3e3688eec5762824263d16f0c (diff)
downloadfiles.iamfabulous.de-ed5dabd4df988f63d300fa4ed6cc388990b0fdfb.tar.gz
Merge branch 'master' of git.iamfabulous.de:files.iamfabulous.de
Diffstat (limited to 'www/functions/func_folder.php')
-rw-r--r--www/functions/func_folder.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/functions/func_folder.php b/www/functions/func_folder.php
index ab77a1c..636b743 100644
--- a/www/functions/func_folder.php
+++ b/www/functions/func_folder.php
@@ -1,6 +1,6 @@
<?php
-function database_mkdir($file_id, $new_folder_name, $share){
+function database_mkdir($db, $file_id, $new_folder_name, $share){
if($db->exec("
BEGIN TRANSACTION;
INSERT INTO files (id, parent, owner, name, folder, size, share, hash) VALUES (Null, " . $file_id . ", " . $_SESSION['userid'] . ", '" . SQLite3::escapeString($new_folder_name) . "', 'DIRECTORY', 0, '" . SQLite3::escapeString($share) . "', '');
@@ -42,7 +42,7 @@ function create_folder($path, $new_folder_name, $share){
}
}
- if(database_mkdir($file_id, $new_folder_name, $share)){
+ if(database_mkdir($db, $file_id, $new_folder_name, $share)){
return MKDIR_SUCCESS;
} else {
return MKDIR_DATABASE;