summaryrefslogtreecommitdiff
path: root/lib/file/editinfo.php
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-06-21 17:12:06 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-06-21 17:12:06 +0200
commit80e0f88b56ca7e306d415604c608d8bc09496e21 (patch)
tree913d120f4e245a7b95bc948d12fa913eed01d840 /lib/file/editinfo.php
parent889e8eaf7c40817663dd602a21ac771062ccac3b (diff)
downloadBits-80e0f88b56ca7e306d415604c608d8bc09496e21.tar.gz
Bits-80e0f88b56ca7e306d415604c608d8bc09496e21.zip
Changes. But minor. Mostly usability changes.
Diffstat (limited to 'lib/file/editinfo.php')
-rw-r--r--lib/file/editinfo.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/file/editinfo.php b/lib/file/editinfo.php
index eea9f35..500a7fc 100644
--- a/lib/file/editinfo.php
+++ b/lib/file/editinfo.php
@@ -30,7 +30,11 @@ if (isset($_POST['name']) && isset($_POST['comment']) && isset($_POST['folder'])
} else {
sql("UPDATE files SET name = '" . escs($name) . "', comment='" . escs($comment). "',
comment_html = '" . escs($comment_html) . "', folder = $folder WHERE id = $id");
- header("Location: file");
+ if ($folder == 0) {
+ header("Location: file");
+ } else {
+ header("Location: folder-file-$folder");
+ }
die();
}
}