mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Updated backup path in backup admin
This commit is contained in:
parent
4be8ba9f17
commit
6cd25fbdeb
|
@ -907,7 +907,7 @@ class SettingsController extends Controller
|
||||||
public function getBackups()
|
public function getBackups()
|
||||||
{
|
{
|
||||||
|
|
||||||
$path = storage_path().'/app/'.config('laravel-backup.backup.name');
|
$path = storage_path().'/app/'.config('backup.backup.name');
|
||||||
|
|
||||||
$files = array();
|
$files = array();
|
||||||
|
|
||||||
|
@ -983,7 +983,7 @@ class SettingsController extends Controller
|
||||||
public function downloadFile($filename = null)
|
public function downloadFile($filename = null)
|
||||||
{
|
{
|
||||||
if (!config('app.lock_passwords')) {
|
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;
|
$file = $path.'/'.$filename;
|
||||||
if (file_exists($file)) {
|
if (file_exists($file)) {
|
||||||
return Response::download($file);
|
return Response::download($file);
|
||||||
|
|
Loading…
Reference in a new issue