mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Sort backups newest to oldest (#2624)
Viewing the backup list produces a seemingly random list. This PR sorts the files newest to oldest.
This commit is contained in:
parent
8233d520c6
commit
46507c929a
|
@ -195,7 +195,7 @@ class SettingsController extends Controller
|
|||
} else {
|
||||
$user->save();
|
||||
$settings->save();
|
||||
|
||||
|
||||
if (Input::get('email_creds')=='1') {
|
||||
Mail::send(['text' => 'emails.firstadmin'], $data, function ($m) use ($data) {
|
||||
$m->to($data['email'], $data['first_name']);
|
||||
|
@ -323,7 +323,7 @@ class SettingsController extends Controller
|
|||
$setting->logo = $file_name;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (config('app.lock_passwords')==false) {
|
||||
$setting->site_name = e(Input::get('site_name'));
|
||||
|
@ -482,7 +482,7 @@ class SettingsController extends Controller
|
|||
|
||||
}
|
||||
closedir($handle);
|
||||
$files = array_reverse($files);
|
||||
rsort($files)
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue