From 80e0f88b56ca7e306d415604c608d8bc09496e21 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Thu, 21 Jun 2012 17:12:06 +0200 Subject: Changes. But minor. Mostly usability changes. --- lib/file/editinfo.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/file/editinfo.php') 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(); } } -- cgit v1.2.3