This commit is contained in:
Daniel Supernault 2019-03-01 00:04:14 -07:00
parent be6dab2d4f
commit 454650b328
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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'));
}