diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-06-21 17:12:06 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-06-21 17:12:06 +0200 |
commit | 80e0f88b56ca7e306d415604c608d8bc09496e21 (patch) | |
tree | 913d120f4e245a7b95bc948d12fa913eed01d840 /lib/file/editinfo.php | |
parent | 889e8eaf7c40817663dd602a21ac771062ccac3b (diff) | |
download | Bits-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.php | 6 |
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(); } } |