mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Updated backup paths for config variables in laravel-backups 3.7.0
This commit is contained in:
parent
1acfd525e8
commit
73327d31e3
|
@ -416,7 +416,7 @@ class SettingsController extends Controller
|
|||
public function getBackups()
|
||||
{
|
||||
|
||||
$path = storage_path().'/app/'.config('laravel-backup.destination.path');
|
||||
$path = storage_path().'/app/'.config('laravel-backup.backup.name');
|
||||
|
||||
$files = array();
|
||||
|
||||
|
@ -475,7 +475,7 @@ class SettingsController extends Controller
|
|||
public function downloadFile($filename = null)
|
||||
{
|
||||
if (!config('app.lock_passwords')) {
|
||||
$path = storage_path().'/app/'.config('laravel-backup.destination.path');
|
||||
$path = storage_path().'/app/'.config('laravel-backup.backup.name');
|
||||
$file = $path.'/'.$filename;
|
||||
if (file_exists($file)) {
|
||||
return Response::download($file);
|
||||
|
@ -504,7 +504,7 @@ class SettingsController extends Controller
|
|||
|
||||
if (!config('app.lock_passwords')) {
|
||||
|
||||
$path = storage_path().'/app/'.config('laravel-backup.destination.path');
|
||||
$path = storage_path().'/app/'.config('laravel-backup.backup.name');
|
||||
$file = $path.'/'.$filename;
|
||||
if (file_exists($file)) {
|
||||
unlink($file);
|
||||
|
|
Loading…
Reference in a new issue