forked from Adleraci/adlerka.top
Rewrite some stuff
This commit is contained in:
parent
3be664d8c7
commit
0f2498a0fa
@ -109,7 +109,7 @@ function listFiles($onlyMine = true): array
|
||||
if (!$onlyMine && !isModerator()) {
|
||||
$onlyMine = true;
|
||||
}
|
||||
$query = "SELECT ID, Path, Type, UploadedAt, UploadedBy FROM Files";
|
||||
$query = "SELECT ID, Path, Type, UploadedAt, UploadedBy FROM Files ORDER BY UploadedAt DESC";
|
||||
|
||||
if ($onlyMine) {
|
||||
$query .= " WHERE UploadedBy = ?";
|
||||
|
Loading…
Reference in New Issue
Block a user