summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-08-05 22:05:40 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-08-05 22:05:40 +0200
commit35ac6214969154e27eecbd7b9ee92c45680a071d (patch)
tree3891d7ca16177859f1075000493daa9d9f79396f
parent768bf6485cc73ad9b508b227fed8b3fcc3c6b65f (diff)
Invert sorting order on thumbnail history
Newest first to match the normal history's default. Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--application/controllers/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index 78ecd5096..c133539f7 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -419,7 +419,7 @@ class File extends CI_Controller {
FROM files
WHERE user = ?
AND mimetype IN ('image/jpeg', 'image/png', 'image/gif')
- ORDER BY date ASC
+ ORDER BY date DESC
", array($user))->result_array();
foreach($query as $key => $item) {