mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +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)
|
||||
{
|
||||
$path = storage_path('app/PixelFed');
|
||||
$files = new \DirectoryIterator($path);
|
||||
$path = storage_path('app/'.config('app.name'));
|
||||
$files = is_dir($path) ? new \DirectoryIterator($path) : [];
|
||||
return view('admin.settings.backups', compact('files'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue