3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 10:45:24 +00:00

Updated spatie backup config file for their latest version

This commit is contained in:
snipe
2018-07-25 01:36:30 -07:00
parent 47ed328f0e
commit 501f096a2c
3 changed files with 26 additions and 213 deletions

View File

@ -908,7 +908,7 @@ class SettingsController extends Controller
public function getBackups()
{
$path = storage_path().'/app/'.config('laravel-backup.backup.name');
$path = storage_path().'/app/'.config('backup.backup.name');
$files = array();
@ -984,7 +984,7 @@ class SettingsController extends Controller
public function downloadFile($filename = null)
{
if (!config('app.lock_passwords')) {
$path = storage_path().'/app/'.config('laravel-backup.backup.name');
$path = storage_path().'/app/'.config('backup.backup.name');
$file = $path.'/'.$filename;
if (file_exists($file)) {
return Response::download($file);
@ -1013,7 +1013,7 @@ class SettingsController extends Controller
if (!config('app.lock_passwords')) {
$path = storage_path().'/app/'.config('laravel-backup.backup.name');
$path = storage_path().'/app/'.config('backup.backup.name');
$file = $path.'/'.$filename;
if (file_exists($file)) {
unlink($file);