Skip to content

Commit

Permalink
Sort backups newest to oldest (#2624)
Browse files Browse the repository at this point in the history
Viewing the backup list produces a seemingly random list.

This PR sorts the files newest to oldest.
  • Loading branch information
tiagom62 authored and snipe committed Sep 17, 2016
1 parent 8233d52 commit 46507c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Http/Controllers/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function postSaveFirstAdmin(SetupUserRequest $request)
} 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']);
Expand Down Expand Up @@ -323,7 +323,7 @@ public function postEdit()
$setting->logo = $file_name;
}
}


if (config('app.lock_passwords')==false) {
$setting->site_name = e(Input::get('site_name'));
Expand Down Expand Up @@ -482,7 +482,7 @@ public function getBackups()

}
closedir($handle);
$files = array_reverse($files);
rsort($files)
}


Expand Down

0 comments on commit 46507c9

Please sign in to comment.