Browse code

Revert "Sort files descending based on creation time in content element"

This reverts commit d0f8331c46e0426095111c9e201a293a6fd68c6b.

Benjamin Roth authored on25/09/2023 11:51:03
Showing1 changed files
... ...
@@ -86,7 +86,7 @@ class SecureDownloadsController extends AbstractContentElementController
86 86
         // Get member files for authenticated user
87 87
         $strLocale = $request->getLocale();
88 88
         $allowedDownload = StringUtil::trimsplit(',', strtolower(\Config::get('allowedDownload')));
89
-        $UserFiles = $this->db->executeQuery("SELECT uuid FROM tl_member_secureDownloads WHERE pid = ? ORDER BY ctime DESC",[$this->User->id]);
89
+        $UserFiles = $this->db->executeQuery("SELECT uuid FROM tl_member_secureDownloads WHERE pid = ?",[$this->User->id]);
90 90
 
91 91
         // Return if there are no files
92 92
         if ($UserFiles->rowCount() < 1)