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/folder.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/file/folder.php') diff --git a/lib/file/folder.php b/lib/file/folder.php index 15e8625..f3beedd 100644 --- a/lib/file/folder.php +++ b/lib/file/folder.php @@ -33,7 +33,8 @@ $title = $fld["name"]; $files = array(); $fileq = sql("SELECT files.id AS id, files.name AS name, files.extension AS extension, files.upl_date AS upl_date, ". - "files.comment_html AS comment_html FROM files WHERE files.folder = $fldid"); + "files.comment_html AS comment_html FROM files WHERE files.folder = $fldid ". + "ORDER BY " . get_filter('order') . " " . get_filter('way')); while ($img = mysql_fetch_assoc($fileq)) $files[] = $img; $s = sql("SELECT id, name FROM folders WHERE owner = " . $fld['owner'] . ($fld['owner'] == $user['id'] ? '' : " AND public != 0"). " ORDER BY name ASC"); -- cgit v1.2.3