Update AdminSettingsController

pull/1443/head
Daniel Supernault 6 years ago
parent 4348680907
commit 095b135f4f
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -27,7 +27,7 @@ trait AdminSettingsController
{
$editor = config('pixelfed.admin.env_editor');
$config = !$editor ? false : file_get_contents(base_path('.env'));
$backup = !$editor ? false : file_get_contents(base_path('.env.backup'));
$backup = !$editor ? false : (is_file(base_path('.env.backup')) ? file_get_contents(base_path('.env.backup')) : false);
return view('admin.settings.config', compact('editor', 'config', 'backup'));
}

Loading…
Cancel
Save