Update DownloadController.php (#1267)

* Update DownloadController.php

* StyleFix

* Another StyleFix !

* Update DownloadController.php

* Last StyleFix and Update

* Apply StyleCI fix

Co-authored-by: Nabeel Shahzad <nabeel@nabeel.sh>
This commit is contained in:
B.Fatih KOZ 2021-08-02 21:43:38 +03:00 committed by GitHub
parent 88a8ffe48a
commit 4a04d73d08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 14 deletions

View File

@ -41,6 +41,8 @@ class DownloadController extends Controller
$klass = new $class();
$obj = $klass->find($id);
// Check if the object is there first
if (isset($obj)) {
$category = explode('\\', $class);
$category = end($category);
@ -58,6 +60,7 @@ class DownloadController extends Controller
$regrouped_files[$group_name] = $files;
}
}
ksort($regrouped_files, SORT_STRING);

View File

@ -0,0 +1 @@
'stored' => '保存',