summaryrefslogtreecommitdiff
path: root/lib/file/folder.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/file/folder.php')
-rw-r--r--lib/file/folder.php3
1 files changed, 2 insertions, 1 deletions
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");