summaryrefslogtreecommitdiff
path: root/lib/file/folder.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/folder.php
parent889e8eaf7c40817663dd602a21ac771062ccac3b (diff)
downloadBits-80e0f88b56ca7e306d415604c608d8bc09496e21.tar.gz
Bits-80e0f88b56ca7e306d415604c608d8bc09496e21.zip
Changes. But minor. Mostly usability changes.
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");