mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-24 00:35:59 +00:00
Fixes #911
This commit is contained in:
parent
be6dab2d4f
commit
454650b328
1 changed files with 2 additions and 2 deletions
|
@ -19,8 +19,8 @@ trait AdminSettingsController
|
||||||
|
|
||||||
public function settingsBackups(Request $request)
|
public function settingsBackups(Request $request)
|
||||||
{
|
{
|
||||||
$path = storage_path('app/PixelFed');
|
$path = storage_path('app/'.config('app.name'));
|
||||||
$files = new \DirectoryIterator($path);
|
$files = is_dir($path) ? new \DirectoryIterator($path) : [];
|
||||||
return view('admin.settings.backups', compact('files'));
|
return view('admin.settings.backups', compact('files'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue